aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/DisableAddonOperator.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/content/operators/impls/DisableAddonOperator.test.ts')
-rw-r--r--test/content/operators/impls/DisableAddonOperator.test.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/content/operators/impls/DisableAddonOperator.test.ts b/test/content/operators/impls/DisableAddonOperator.test.ts
index 358ae44..e05d1f1 100644
--- a/test/content/operators/impls/DisableAddonOperator.test.ts
+++ b/test/content/operators/impls/DisableAddonOperator.test.ts
@@ -2,18 +2,21 @@ import { expect } from "chai";
import DisableAddonOperator from "../../../../src/content/operators/impls/DisableAddonOperator";
import MockAddonIndicatorClient from "../../mock/MockAddonIndicatorClient";
import MockAddonEnabledRepository from "../../mock/MockAddonEnabledRepository";
+import MockConsoleFramePresenter from "./MockConsoleFramePresenter";
describe("DisableAddonOperator", () => {
describe("#run", () => {
it("disables addon", async () => {
const client = new MockAddonIndicatorClient(true);
const repository = new MockAddonEnabledRepository(true);
- const sut = new DisableAddonOperator(client, repository);
+ const presenter = new MockConsoleFramePresenter(true);
+ const sut = new DisableAddonOperator(client, repository, presenter);
await sut.run();
expect(client.enabled).to.be.false;
expect(repository.enabled).to.be.false;
+ expect(presenter.attached).to.be.false;
});
});
});