diff options
Diffstat (limited to 'test/console/actions/completion.test.ts')
-rw-r--r-- | test/console/actions/completion.test.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/console/actions/completion.test.ts b/test/console/actions/completion.test.ts new file mode 100644 index 0000000..cd6899a --- /dev/null +++ b/test/console/actions/completion.test.ts @@ -0,0 +1,28 @@ +import * as completionActions from "../../../src/console/actions/completion"; +import { + COMPLETION_COMPLETION_NEXT, + COMPLETION_COMPLETION_PREV, +} from "../../../src/console/actions/completion"; +import { expect } from "chai"; + +import browserFake from "webextensions-api-fake"; + +describe("completion actions", () => { + beforeEach(() => { + (global as any).browser = browserFake(); + }); + + describe("completionPrev", () => { + it("create COMPLETION_COMPLETION_PREV action", () => { + const action = completionActions.completionPrev(); + expect(action.type).to.equal(COMPLETION_COMPLETION_PREV); + }); + }); + + describe("completionNext", () => { + it("create COMPLETION_COMPLETION_NEXT action", () => { + const action = completionActions.completionNext(); + expect(action.type).to.equal(COMPLETION_COMPLETION_NEXT); + }); + }); +}); |