-
-
Save richardgrantserverless/491392348769941d2198af1e707fd08d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-env mocha */ | |
'use strict' | |
// tests for exampleFunction | |
// Generated by serverless-mocha-plugin | |
const mochaPlugin = require('serverless-mocha-plugin') | |
const dirtyChai = require('dirty-chai') | |
mochaPlugin.chai.use(dirtyChai) | |
const expect = mochaPlugin.chai.expect | |
let wrapped = mochaPlugin.getWrapper('exampleFunction', '../../../src/functions/exampleFunction.js', 'exampleFunction') | |
describe('exampleFunction', () => { | |
before((done) => { | |
done() | |
}) | |
it('implement tests here', () => { | |
return wrapped.run({}).then((response) => { | |
expect(response).to.not.be.empty() | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment