i'm using ember-cli mocha , test causing jshint test fail (the test passing).
'beforeeach' not defined.
i tried adding "mocha": true option .jshintrc says in the docs. tried adding "globals": { "beforeeach": true }.
i'm running tests ember test --server.
/* jshint expr:true */ import { expect } 'chai'; import { describemodel, } 'ember-mocha'; describemodel( 'user', 'user', { // specify other units required test. needs: [] }, function() { beforeeach(function(){ this.model = this.subject({ email: 'test@example.com' }); }); // replace real tests. it('exists', function() { // var store = this.store(); expect(this.model.get('email')).to.equal('test@example.com'); }); } );
apparently need close ember cli test server , start again.
Comments
Post a Comment