Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created April 4, 2022 04:58
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/5f4618155c37c5a20663daa2766ffbb8 to your computer and use it in GitHub Desktop.
Save richardgrantserverless/5f4618155c37c5a20663daa2766ffbb8 to your computer and use it in GitHub Desktop.
it('implement tests here', () => {
AWS.mock('S3', 'putObject', (params) => {
return new Promise((resolve, reject) => {
resolve({})
})
})
return wrapped.run({
body: JSON.stringify({
parameter: 'value'
})
}).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