aboutsummaryrefslogtreecommitdiff
path: root/test/background/operators/impls/CommandOperatorFactoryChain.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/background/operators/impls/CommandOperatorFactoryChain.test.ts')
-rw-r--r--test/background/operators/impls/CommandOperatorFactoryChain.test.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/background/operators/impls/CommandOperatorFactoryChain.test.ts b/test/background/operators/impls/CommandOperatorFactoryChain.test.ts
index e481c5a..ce8676a 100644
--- a/test/background/operators/impls/CommandOperatorFactoryChain.test.ts
+++ b/test/background/operators/impls/CommandOperatorFactoryChain.test.ts
@@ -1,5 +1,4 @@
import "reflect-metadata";
-import { expect } from "chai";
import CommandOperatorFactoryChain from "../../../../src/background/operators/impls/CommandOperatorFactoryChain";
import MockTabPresenter from "../../mock/MockTabPresenter";
import MockConsoleClient from "../../mock/MockConsoleClient";
@@ -18,25 +17,25 @@ describe("CommandOperatorFactoryChain", () => {
const consoleClient = new MockConsoleClient();
const sut = new CommandOperatorFactoryChain(tabPresenter, consoleClient);
- expect(sut.create({ type: operations.COMMAND_SHOW })).to.be.instanceOf(
+ expect(sut.create({ type: operations.COMMAND_SHOW })).toBeInstanceOf(
ShowCommandOperator
);
expect(
sut.create({ type: operations.COMMAND_SHOW_TABOPEN, alter: true })
- ).to.be.instanceOf(ShowTabOpenCommandOperator);
+ ).toBeInstanceOf(ShowTabOpenCommandOperator);
expect(
sut.create({ type: operations.COMMAND_SHOW_WINOPEN, alter: true })
- ).to.be.instanceOf(ShowWinOpenCommandOperator);
+ ).toBeInstanceOf(ShowWinOpenCommandOperator);
expect(
sut.create({ type: operations.COMMAND_SHOW_BUFFER })
- ).to.be.instanceOf(ShowBufferCommandOperator);
+ ).toBeInstanceOf(ShowBufferCommandOperator);
expect(
sut.create({ type: operations.COMMAND_SHOW_ADDBOOKMARK, alter: true })
- ).to.be.instanceOf(ShowAddBookmarkOperator);
- expect(sut.create({ type: operations.FIND_START })).to.be.instanceOf(
+ ).toBeInstanceOf(ShowAddBookmarkOperator);
+ expect(sut.create({ type: operations.FIND_START })).toBeInstanceOf(
StartFindOperator
);
- expect(sut.create({ type: operations.CANCEL })).to.be.null;
+ expect(sut.create({ type: operations.CANCEL })).toBeNull;
});
});
});