aboutsummaryrefslogtreecommitdiff
path: root/test/console/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-04-15 19:35:15 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-05-02 12:55:42 +0900
commitb0fe06bc2e739cc252a559f666da65b27769959d (patch)
tree4fe9d1c6378b87082b14ca6d1b7ca2737df94aac /test/console/actions
parent20d40d8017284f80876bde8e28cbde47c3651886 (diff)
Fix types in tests
Diffstat (limited to 'test/console/actions')
-rw-r--r--test/console/actions/console.test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/console/actions/console.test.ts b/test/console/actions/console.test.ts
index 5a531a6..3169c4b 100644
--- a/test/console/actions/console.test.ts
+++ b/test/console/actions/console.test.ts
@@ -2,7 +2,15 @@ import * as actions from "../../../src/console/actions";
import * as consoleActions from "../../../src/console/actions/console";
import { expect } from "chai";
+// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
+// @ts-ignore
+import browserFake from "webextensions-api-fake";
+
describe("console actions", () => {
+ beforeEach(() => {
+ (global as any).browser = browserFake();
+ });
+
describe("hide", () => {
it("create CONSOLE_HIDE action", () => {
const action = consoleActions.hide();