Make addon-enabled as a clean architecture
This commit is contained in:
parent
05ef6a8ca3
commit
e76ca380f7
16 changed files with 218 additions and 96 deletions
15
test/content/repositories/AddonEnabledRepository.test.ts
Normal file
15
test/content/repositories/AddonEnabledRepository.test.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { AddonEnabledRepositoryImpl } from '../../../src/content/repositories/AddonEnabledRepository';
|
||||
import { expect } from 'chai';
|
||||
|
||||
describe('AddonEnabledRepositoryImpl', () => {
|
||||
it('updates and gets current value', () => {
|
||||
let sut = new AddonEnabledRepositoryImpl();
|
||||
|
||||
sut.set(true);
|
||||
expect(sut.get()).to.be.true;
|
||||
|
||||
sut.set(false);
|
||||
expect(sut.get()).to.be.false;
|
||||
});
|
||||
});
|
||||
|
Reference in a new issue