Last active
May 23, 2019 04:34
-
-
Save wataruoguchi/bf99034171a2a6d57e01e1ab330deb26 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
// __tests__/handler.spec.js | |
const handler = require('../handler.js'); | |
const event = require('../tests/event.json'); | |
test('correct keys get generated', () => { | |
handler.handler(event, null, (error, success) => { | |
expect(error).toBe(null); | |
expect(success.key).toBe('my video.mp4'); | |
expect(success.sourceKey).toBe('my video.mp4'); | |
expect(success.outputKey).toBe('my video'); | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment