Created
December 21, 2015 17:35
-
-
Save humanchimp/b9df3046e510f161356a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function testRoutes() { | |
return function() { | |
this.post('/api/user/login', login()); | |
}; | |
function login() {} | |
} | |
/* | |
Fails jshint: | |
tests/helpers/api-routes.js: line 6, col 12, 'login' is defined but never used. | |
1 error | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function testRoutes() { | |
return function() { | |
this.post('/api/user/login', login2()); | |
}; | |
function login2() {} | |
} | |
// Passes jshint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment