aboutsummaryrefslogtreecommitdiff
path: root/test/background/mock/MockBrowserSettingRepository.ts
blob: 9dd1b152c54dd0e8abd67088d2d9f9f1835983b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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);
  }
}