From 1f51f3260d90914fba89720f63813a3f41f5e5f1 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 6 May 2018 21:11:26 +0900 Subject: add tests --- test/background/actions/tab.test.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/background/actions/tab.test.js (limited to 'test/background/actions') 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); + }); + }); +}); + -- cgit v1.2.3