Skip to content

Commit

Permalink
Removed QUnit and moved the sinon call to setup and teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Honkanen committed Feb 10, 2015
1 parent bf458f1 commit 9559627
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/unit/authenticators/jwt-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import startApp from '../../helpers/start-app';
import Ember from 'ember';
import JWT from 'simple-auth-token/authenticators/jwt';
import Configuration from 'simple-auth-token/configuration';
import QUnit from 'qunit';

var App;

Expand All @@ -14,22 +13,15 @@ module('JWT Authenticator', {
App.server = sinon.fakeServer.create();
App.server.autoRespond = true;
App.authenticator = JWT.create();
sinon.spy(Ember.run, 'later');
},
teardown: function() {
Ember.run(App, App.destroy);
App.xhr.restore();
Ember.run.later.restore();
}
});

QUnit.testStart(function(detail){
sinon.spy(Ember.run, 'later');

});

QUnit.testDone(function(detail){
Ember.run.later.restore();
});

test('assigns serverTokenRefreshEndpoint from the configuration object', function() {
Configuration.serverTokenRefreshEndpoint = 'serverTokenRefreshEndpoint';

Expand Down

0 comments on commit 9559627

Please sign in to comment.