diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-20 22:21:31 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-21 20:30:37 +0900 |
commit | 1666e626b0d90a53399bf2e79e47b486dbca795c (patch) | |
tree | dc49a80f02bdec71639e5389c25e96a14835c856 /test/content/usecases/MarkUseCase.test.ts | |
parent | 71f3a1ea2d3d648db9f628bb1deddc41263ab438 (diff) |
Use TSyringe on content script
Diffstat (limited to 'test/content/usecases/MarkUseCase.test.ts')
-rw-r--r-- | test/content/usecases/MarkUseCase.test.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/content/usecases/MarkUseCase.test.ts b/test/content/usecases/MarkUseCase.test.ts index 4f2dee4..494497a 100644 --- a/test/content/usecases/MarkUseCase.test.ts +++ b/test/content/usecases/MarkUseCase.test.ts @@ -1,4 +1,5 @@ import MarkRepository from '../../../src/content/repositories/MarkRepository'; +import { SettingRepositoryImpl } from '../../../src/content/repositories/SettingRepository'; import MarkUseCase from '../../../src/content/usecases/MarkUseCase'; import MarkClient from '../../../src/content/client/MarkClient'; import MockConsoleClient from '../mock/MockConsoleClient'; @@ -54,9 +55,13 @@ describe('MarkUseCase', () => { client = new MockMarkClient(); consoleClient = new MockConsoleClient(); scrollPresenter = new MockScrollPresenter(); - sut = new MarkUseCase({ - repository, client, consoleClient, scrollPresenter, - }); + sut = new MarkUseCase( + scrollPresenter, + client, + repository, + new SettingRepositoryImpl(), + consoleClient, + ); }); describe('#set', () => { |