aboutsummaryrefslogtreecommitdiff
path: root/test/console/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-04-11 18:00:51 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-04-11 22:34:14 +0900
commit618fb497c443662531eb3befe7696a04efe9651d (patch)
tree530af78bf75f03e7ffd71e4ca5ad1cf864584be0 /test/console/actions
parent21f863d76fbb5ed752ad529f8fbe33e75460027e (diff)
Replace completion state with Custom Hooks
Diffstat (limited to 'test/console/actions')
-rw-r--r--test/console/actions/completion.test.ts28
-rw-r--r--test/console/actions/console.test.ts9
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");
- });
- });
});