Skip to content

Instantly share code, notes, and snippets.

@humanchimp
Created December 21, 2015 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save humanchimp/b9df3046e510f161356a to your computer and use it in GitHub Desktop.
Save humanchimp/b9df3046e510f161356a to your computer and use it in GitHub Desktop.
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
*/
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