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