Skip to content

Commit

Permalink
Clarify mocking comments (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri authored Jul 21, 2018
1 parent e49ef8d commit ed0db75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/helloworld/test/sample.unit.http.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const uuid = require(`uuid`);
const helloHttp = require(`..`).helloHttp;

test(`helloHttp: should print a name`, t => {
// Initialize mocks
// Mock ExpressJS 'req' and 'res' parameters
const name = uuid.v4();
const req = {
body: {
Expand All @@ -39,7 +39,7 @@ test(`helloHttp: should print a name`, t => {
});

test(`helloHttp: should print hello world`, t => {
// Initialize mocks
// Mock ExpressJS 'req' and 'res' parameters
const req = {
body: {}
};
Expand Down

0 comments on commit ed0db75

Please sign in to comment.