diff options
Diffstat (limited to 'test/console/actions')
-rw-r--r-- | test/console/actions/completion.test.ts | 28 | ||||
-rw-r--r-- | test/console/actions/console.test.ts | 9 |
2 files changed, 0 insertions, 37 deletions
diff --git a/test/console/actions/completion.test.ts b/test/console/actions/completion.test.ts deleted file mode 100644 index cd6899a..0000000 --- a/test/console/actions/completion.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -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); - }); - }); -}); diff --git a/test/console/actions/console.test.ts b/test/console/actions/console.test.ts index f5f102b..736dd54 100644 --- a/test/console/actions/console.test.ts +++ b/test/console/actions/console.test.ts @@ -2,7 +2,6 @@ import * as consoleActions from "../../../src/console/actions/console"; import { CONSOLE_HIDE, CONSOLE_HIDE_COMMAND, - CONSOLE_SET_CONSOLE_TEXT, CONSOLE_SHOW_COMMAND, CONSOLE_SHOW_ERROR, CONSOLE_SHOW_FIND, @@ -60,12 +59,4 @@ describe("console actions", () => { expect(action.type).to.equal(CONSOLE_HIDE_COMMAND); }); }); - - describe("setConsoleText", () => { - it("create CONSOLE_SET_CONSOLE_TEXT action", () => { - const action = consoleActions.setConsoleText("hello world"); - expect(action.type).to.equal(CONSOLE_SET_CONSOLE_TEXT); - expect(action.consoleText).to.equal("hello world"); - }); - }); }); |