Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Add a unit test on routes/compte-test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuget committed Aug 31, 2017
1 parent 521f9c3 commit 55e229e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion live/tests/unit/routes/compte-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Unit | Route | compte', function() {
});
});

it('should remain on /compte when the user as no organization linked', function() {
it('should remain on /compte when the user as no organization linked (with a forced data reload)', function() {
// Given
const foundUser = Ember.Object.create({});

Expand All @@ -85,6 +85,7 @@ describe('Unit | Route | compte', function() {
// Then
return promise.then(function() {
sinon.assert.notCalled(route.transitionTo);
sinon.assert.calledWith(findRecordStub, 'user', undefined, { reload: true });
});
});

Expand Down

0 comments on commit 55e229e

Please sign in to comment.