Skip to content

Commit

Permalink
Add test for /payment-processor route
Browse files Browse the repository at this point in the history
Relates #27 #25 #23
  • Loading branch information
joeylouise committed May 4, 2017
1 parent 26d5a70 commit f167955
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ test('test that the home route returns a status code of 200', (t) => {
t.end();
});
});

test('test that the payment-processor route returns a status code of 200', (t) => {
const options = {
method: 'GET',
url: '/payment-processor',
};

server.inject(options, (res) => {
t.equal(res.statusCode, 200, 'should return status code of 200');
t.end();
});
});

0 comments on commit f167955

Please sign in to comment.