add global find keyword
This commit is contained in:
parent
4923cb20c7
commit
24e72aa6e0
8 changed files with 74 additions and 0 deletions
test/background/actions
13
test/background/actions/find.test.js
Normal file
13
test/background/actions/find.test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { expect } from "chai";
|
||||
import actions from 'background/actions';
|
||||
import * as findActions from 'background/actions/find';
|
||||
|
||||
describe("find actions", () => {
|
||||
describe("setKeyword", () => {
|
||||
it('create FIND_SET_KEYWORD action', () => {
|
||||
let action = findActions.setKeyword('banana');
|
||||
expect(action.type).to.equal(actions.FIND_SET_KEYWORD);
|
||||
expect(action.keyword).to.equal('banana');
|
||||
});
|
||||
});
|
||||
});
|
Reference in a new issue