blob: 43b1575b236827602423120b758145018f9b08a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import sinon from "sinon";
import ReopenTabOperator from "../../../../src/background/operators/impls/ReopenTabOperator";
import MockTabPresenter from "../../mock/MockTabPresenter";
describe("ReopenTabOperator", () => {
describe("#run", () => {
it("reopens closed tabs", async () => {
const tabPresenter = new MockTabPresenter();
const mock = sinon.mock(tabPresenter).expects("reopen");
const sut = new ReopenTabOperator(tabPresenter);
await sut.run();
mock.verify();
});
});
});
|