Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 9fa49f0

Browse files
committed
Add goWait nav action
1 parent c071bd5 commit 9fa49f0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/action/nav.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class NavAction {
3131
this._store.route = 'NewAddress';
3232
}
3333

34+
goWait() {
35+
this._store.route = 'Wait';
36+
}
37+
3438
goHome() {
3539
this._store.route = 'Home';
3640
}

test/unit/action/nav.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ describe('Action Nav Unit Tests', () => {
6767
});
6868
});
6969

70+
describe('goWait()', () => {
71+
it('should set correct route', () => {
72+
nav.goWait();
73+
expect(store.route, 'to equal', 'Wait');
74+
});
75+
});
76+
7077
describe('goHome()', () => {
7178
it('should set correct route', () => {
7279
nav.goHome();

0 commit comments

Comments
 (0)