aboutsummaryrefslogtreecommitdiff
path: root/test/background/actions/tab.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/background/actions/tab.test.js')
-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);
+ });
+ });
+});
+