add tests

This commit is contained in:
Shin'ya Ueoka 2018-05-06 21:11:26 +09:00
parent 6d057a974b
commit 1f51f3260d
2 changed files with 35 additions and 0 deletions

View file

@ -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);
});
});
});