aboutsummaryrefslogblamecommitdiff
path: root/test/content/mock/MockAddonEnabledRepository.ts
blob: 30454f0b5dd7869ea08ef42f56d1aceda7cd0ac5 (plain) (tree)
1
2
3
4
5

                                                                                              
                                   












                                     
import AddonEnabledRepository from "../../../src/content/repositories/AddonEnabledRepository";

export default class MockAddonEnabledRepository
  implements AddonEnabledRepository
{
  public enabled: boolean;

  constructor(initialValue = false) {
    this.enabled = initialValue;
  }

  get(): boolean {
    return this.enabled;
  }

  set(on: boolean): void {
    this.enabled = on;
  }
}