Last active
November 18, 2019 21:28
-
-
Save dansalias/be26816ba0b69d2e66a7f5a9c7ef24c7 to your computer and use it in GitHub Desktop.
Lambda Testing Example - capitalise.spec.js
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
describe('capitalise lambda', () => { | |
it('should capitalise the first letter of every word', () => { | |
const handler = require('capitalise.js').handler; | |
const result = handler({name: 'dan salias'}); | |
expect(result).toStrictEqual({name: 'Dan Salias'}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment