Skip to content

Commit

Permalink
Tweaking test
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Mar 19, 2017
1 parent 774c777 commit d4f3151
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const json = JSON.parse(`{
}`);

test('handler', t => {
t.plan(3);
handler(json, {
callbackWaitsForEmptyEventLoop: true,
logGroupName: '',
Expand All @@ -36,12 +37,12 @@ test('handler', t => {
functionVersion: '',
invokeid: '',
awsRequestId: '',
succeed(...args) {
succeed(...args: any[]) {
console.log('YES_ARGS:', ...args);
t.end();
t.pass();
},
fail(...args) {
console.log('NO_ARGS:', ...args)
fail() {
t.fail();
t.end();
}
}, () => {});
Expand Down

0 comments on commit d4f3151

Please sign in to comment.