Skip to content
This repository was archived by the owner on Apr 9, 2019. It is now read-only.

Commit 9b49138

Browse files
committed
Fixed broken tests
1 parent 33015ac commit 9b49138

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/navigation-controller.spec.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,13 @@ describe('NavigationController', () => {
304304
}
305305
});
306306
requestAnimationFrame(() => {
307-
expect(controller.state.transition).to.equal('none');
307+
expect(controller.state.transition).to.equal(transitionType.NONE);
308308
});
309309
});
310310
it('sets state.mountedViews', (done) => {
311311
const [prev,next] = controller.__viewIndexes;
312312
controller.__pushView(<ViewB />, {
313-
transition: transitionType.NONE,
313+
transition: transitionType.PUSH_LEFT,
314314
onComplete() {
315315
expect(controller.state.views[1].type).to.equal(ViewB);
316316
done();
@@ -413,13 +413,13 @@ describe('NavigationController', () => {
413413
}
414414
});
415415
requestAnimationFrame(() => {
416-
expect(controller.state.transition).to.equal('none');
416+
expect(controller.state.transition).to.equal(transitionType.NONE);
417417
});
418418
});
419419
it('sets state.mountedViews', (done) => {
420420
const [prev,next] = controller.__viewIndexes;
421421
controller.__popView({
422-
transition: transitionType.NONE,
422+
transition: transitionType.PUSH_RIGHT,
423423
onComplete() {
424424
done();
425425
}

0 commit comments

Comments
 (0)