blob: 4216cd08d5a0e8fc1173548bc91823331dac186b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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 startFollowSpy = jest
.spyOn(client, "startFollow")
.mockReturnValue();
const sut = new StartFollowOperator(client, true, false);
await sut.run();
expect(startFollowSpy).toBeCalledWith(true, false);
});
});
});
|