aboutsummaryrefslogtreecommitdiff
path: root/test/background/mock/MockBrowserSettingRepository.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/background/mock/MockBrowserSettingRepository.ts')
-rw-r--r--test/background/mock/MockBrowserSettingRepository.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/background/mock/MockBrowserSettingRepository.ts b/test/background/mock/MockBrowserSettingRepository.ts
new file mode 100644
index 0000000..22e7084
--- /dev/null
+++ b/test/background/mock/MockBrowserSettingRepository.ts
@@ -0,0 +1,10 @@
+import BrowserSettingRepository from "../../../src/background/repositories/BrowserSettingRepository";
+
+export default class MockBrowserSettingRepository
+ implements BrowserSettingRepository {
+ constructor(private readonly homepageUrls: string[]) {}
+
+ getHomepageUrls(): Promise<string[]> {
+ return Promise.resolve(this.homepageUrls);
+ }
+}