Skip to content

Commit

Permalink
Added test for toString() and full coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimoulis committed Oct 3, 2017
1 parent 4fe5df6 commit 86b9d75
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/routes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test('Add routes', () => {
[Routes.POST, '/test', post_action],
[Routes.GET, '/test', get_action],
[Routes.PUT, '/love/*', put_action],
[Routes.DELETE, '/temp', delete_action],
[Routes.DELETE, '/temp', f.x],
]);
let _routes = routes.routes();
let _actions = routes.actions();
Expand Down Expand Up @@ -105,11 +105,11 @@ test('Remove route with query', () => {
expect(routes.hasMethodRoute(Routes.POST, '/query')).toBeFalsy();
});

// test('To String', () => {
// expect(typeof routes.toString()).toBe('string');
// });
//
//
test('To String', () => {
expect(typeof routes.toString()).toBe('string');
});


// // EXCEPTIONS
test('Bad Route', () => {
let f = () => {routes.addMethodRoute(Routes.POST, 3, post_action)};
Expand Down

0 comments on commit 86b9d75

Please sign in to comment.