How strange, I can’t use the debugger statement after upgrading from 0.1.5 to 0.1.7.
JSHint - console/tests/acceptance: console/tests/acceptance/user-can-login-test.js should pass js
hint
✘ console/tests/acceptance/user-can-login-test.js should pass jshint.
console/tests/acceptance/user-can-login-test.js: line 22, col 3, Forgotten 'debugger' stateme
nt?
console/tests/acceptance/user-can-login-test.js: line 22, col 11, Missing semicolon.
2 errors
Test code:
import Ember from 'ember';
import startApp from '../helpers/start-app';
var application;
var defaultLogin = {
email: 'support@test.com',
password: 'testing'
};
module('Acceptance: As a user I can login', {
setup: function() {
application = startApp();
},
teardown: function() {
Ember.run(application, 'destroy');
}
});
test('visiting /user-can-login', function() {
visit('/login');
debugger
andThen(function() {
equal(currentPath(), 'login');
fillIn("#login_email", defaultLogin.email);
fillIn("#login_password", defaultLogin.password);
click("#login_submit");
andThen(function() {
equal(currentPath(), 'dashboard.index');
});
});
});