aboutsummaryrefslogtreecommitdiff
path: root/test/background/reducers/tab.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/background/reducers/tab.test.js')
-rw-r--r--test/background/reducers/tab.test.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/background/reducers/tab.test.js b/test/background/reducers/tab.test.js
deleted file mode 100644
index 09fa8a7..0000000
--- a/test/background/reducers/tab.test.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import actions from 'background/actions';
-import tabReducer from 'background/reducers/tab';
-
-describe("tab reducer", () => {
- it('return the initial state', () => {
- let state = tabReducer(undefined, {});
- expect(state.previousSelected).to.equal(-1);
- expect(state.currentSelected).to.equal(-1);
- });
-
- it('return next state for TAB_SELECTED', () => {
- let state = undefined;
-
- state = tabReducer(state, { type: actions.TAB_SELECTED, tabId: 123 });
- expect(state.previousSelected).to.equal(-1);
- expect(state.currentSelected).to.equal(123);
-
- state = tabReducer(state, { type: actions.TAB_SELECTED, tabId: 456 });
- expect(state.previousSelected).to.equal(123);
- expect(state.currentSelected).to.equal(456);
- });
-});