blob: 30454f0b5dd7869ea08ef42f56d1aceda7cd0ac5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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;
}
}
|