blob: 8f9bd2d0e04f98076e5ec7890f2335084777e82a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import sinon from "sinon";
import StartFollowOperator from "../../../../src/content/operators/impls/StartFollowOperator";
import MockFollowMasterClient from "../../mock/MockFollowMasterClient";
describe("StartFollowOperator", () => {
describe("#run", () => {
it("starts following links", async () => {
const client = new MockFollowMasterClient();
const mock = sinon
.mock(client)
.expects("startFollow")
.withArgs(true, false);
const sut = new StartFollowOperator(client, true, false);
await sut.run();
mock.verify();
});
});
});
|