aboutsummaryrefslogtreecommitdiff
path: root/test/content/mock/MockAddonIndicatorClient.ts
blob: 6ea9798eba07c27bb93c2c142981cce576f5a75e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import AddonIndicatorClient from "../../../src/content/client/AddonIndicatorClient";

export default class MockAddonIndicatorClient implements AddonIndicatorClient {
  public enabled: boolean;

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

  async setEnabled(enabled: boolean): Promise<void> {
    this.enabled = enabled;
  }
}