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