blob: cd6899aabac14a8847bb38c5c3c7f655972bee71 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
});
});
});
|