diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-09-23 12:44:49 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-09-23 13:14:00 +0900 |
commit | 01242a2f0d174b4bf8b51fd5627edced465757e9 (patch) | |
tree | b8ab266625ae3244b6ed8c9ff7a92a979e532e91 /test/background/usecases | |
parent | cbf4b37bd0d5ba277d6400ed460d6a086ae1d7bb (diff) |
Search a content from frames successfully loaded
Diffstat (limited to 'test/background/usecases')
-rw-r--r-- | test/background/usecases/StartFindUseCase.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/background/usecases/StartFindUseCase.test.ts b/test/background/usecases/StartFindUseCase.test.ts index 22ff9a5..99ab508 100644 --- a/test/background/usecases/StartFindUseCase.test.ts +++ b/test/background/usecases/StartFindUseCase.test.ts @@ -2,7 +2,7 @@ import * as sinon from "sinon"; import MockFindClient from "../mock/MockFindClient"; import MockFindRepository from "../mock/MockFindRepository"; import MockConsoleClient from "../mock/MockConsoleClient"; -import MockFramePresenter from "../mock/MockFramePresenter"; +import MockReadyFrameRepository from "../mock/MockReadyFrameRepository"; import StartFindUseCase from "../../../src/background/usecases/StartFindUseCase"; describe("StartFindUseCase", () => { @@ -13,19 +13,19 @@ describe("StartFindUseCase", () => { const findClient = new MockFindClient(); const findRepository = new MockFindRepository(); const consoleClient = new MockConsoleClient(); - const framePresenter = new MockFramePresenter(); + const frameRepository = new MockReadyFrameRepository(); const sut = new StartFindUseCase( findClient, findRepository, consoleClient, - framePresenter + frameRepository ); beforeEach(async () => { sinon.restore(); sinon - .stub(framePresenter, "getAllFrameIds") + .stub(frameRepository, "getFrameIds") .returns(Promise.resolve(frameIds)); }); |