Last active
September 25, 2020 14:18
-
-
Save lekansogunle/988cead26185cdf46cc1e12c441da9d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const handler = require('../handler'); | |
test('correctly create post', () => { | |
expect(handler.createPost({foo: 'bar'})).toStrictEqual({ | |
statusCode: 200, | |
body: JSON.stringify( | |
{ | |
message: 'Hello From Create Post!', | |
input: {foo: 'bar'}, | |
}, | |
null, | |
2 | |
), | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment