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/ClipboardUseCase.test.ts | |
parent | 71f3a1ea2d3d648db9f628bb1deddc41263ab438 (diff) |
Use TSyringe on content script
Diffstat (limited to 'test/content/usecases/ClipboardUseCase.test.ts')
-rw-r--r-- | test/content/usecases/ClipboardUseCase.test.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/content/usecases/ClipboardUseCase.test.ts b/test/content/usecases/ClipboardUseCase.test.ts index 862ee8a..551c3f7 100644 --- a/test/content/usecases/ClipboardUseCase.test.ts +++ b/test/content/usecases/ClipboardUseCase.test.ts @@ -1,4 +1,5 @@ import ClipboardRepository from '../../../src/content/repositories/ClipboardRepository'; +import { SettingRepositoryImpl } from '../../../src/content/repositories/SettingRepository'; import TabsClient from '../../../src/content/client/TabsClient'; import MockConsoleClient from '../mock/MockConsoleClient'; import ClipboardUseCase from '../../../src/content/usecases/ClipboardUseCase'; @@ -43,7 +44,12 @@ describe('ClipboardUseCase', () => { repository = new MockClipboardRepository(); client = new MockTabsClient(); consoleClient = new MockConsoleClient(); - sut = new ClipboardUseCase({ repository, client: client, consoleClient }); + sut = new ClipboardUseCase( + repository, + new SettingRepositoryImpl(), + client, + consoleClient + ); }); describe('#yankCurrentURL', () => { |