Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nemreid committed Aug 14, 2018
1 parent 8dcf9b2 commit 4288b43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/test-index-with-dir-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test.cb('CUMULUS_MESSAGE_ADAPTER_DIR sets the location of the message adapter',
const expectedOutput = {
event: {
event: inputEvent,
context: {},
schemas: null
},
handler_response: businessLogicOutput,
Expand Down
4 changes: 3 additions & 1 deletion test/test-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ test.cb('The correct cumulus message is returned', (t) => {
const expectedOutput = {
event: {
event: inputEvent,
context: {},
schemas: null
},
handler_response: businessLogicOutput,
Expand All @@ -35,6 +36,7 @@ test.cb('Correct cumulus message is returned when task returns a promise that re
const expectedOutput = {
event: {
event: inputEvent,
context: {},
schemas: null
},
handler_response: businessLogicOutput,
Expand All @@ -56,7 +58,7 @@ test.cb('The businessLogic receives the correct arguments', (t) => {
const context = { b: 2 };

const expectedNestedEvent = {
event: { event: { a: 1 }, schemas: null },
event: { event: { a: 1 }, context: {}, schemas: null },
schemas: null,
context: { b: 2 }
};
Expand Down

0 comments on commit 4288b43

Please sign in to comment.