blob: a0eb53b28e9f8510b030453ab4c3c491482fc6ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import sinon from "sinon";
import FocusOperator from "../../../../src/content/operators/impls/FocusOperator";
import MockFocusPresenter from "../../mock/MockFocusPresenter";
describe("FocusOperator", () => {
describe("#run", () => {
it("focus a first input", async () => {
const presenter = new MockFocusPresenter();
const mock = sinon.mock(presenter).expects("focusFirstElement");
const sut = new FocusOperator(presenter);
await sut.run();
mock.verify();
});
});
});
|