diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-06 21:11:26 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-06 21:11:26 +0900 |
commit | 1f51f3260d90914fba89720f63813a3f41f5e5f1 (patch) | |
tree | daf53ef4edd23009a563178e49584ff04e3e1f41 /test/background/actions | |
parent | 6d057a974bb42406259b6f0b0a8c0b1e22335073 (diff) |
add tests
Diffstat (limited to 'test/background/actions')
-rw-r--r-- | test/background/actions/tab.test.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/background/actions/tab.test.js b/test/background/actions/tab.test.js new file mode 100644 index 0000000..ab57374 --- /dev/null +++ b/test/background/actions/tab.test.js @@ -0,0 +1,13 @@ +import actions from 'background/actions'; +import * as tabActions from 'background/actions/tab'; + +describe("tab actions", () => { + describe("selected", () => { + it('create TAB_SELECTED action', () => { + let action = tabActions.selected(123); + expect(action.type).to.equal(actions.TAB_SELECTED); + expect(action.tabId).to.equal(123); + }); + }); +}); + |