aboutsummaryrefslogtreecommitdiff
path: root/test/background/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-06 21:42:43 +0900
committerGitHub <noreply@github.com>2018-05-06 21:42:43 +0900
commit104a9666ff627b11ce7cf3a5bf096b1bc3437bc1 (patch)
tree4d995736429753d8c9d2892ef6195e6517777fc9 /test/background/actions
parent828ac8cd84ddae9565be67f56e452a416b305c7a (diff)
parentcf30ef0cd503b3b9dee882202d64ba9db9922ee3 (diff)
Merge pull request #386 from ueokande/addon-enabled-indicator
Addon enabled indicator
Diffstat (limited to 'test/background/actions')
-rw-r--r--test/background/actions/tab.test.js13
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);
+ });
+ });
+});
+