Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created April 4, 2022 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/491392348769941d2198af1e707fd08d to your computer and use it in GitHub Desktop.
Save richardgrantserverless/491392348769941d2198af1e707fd08d to your computer and use it in GitHub Desktop.
/* 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