aboutsummaryrefslogtreecommitdiff
path: root/test/content/repositories/AddonEnabledRepository.test.ts
blob: 7edd50e5057df68345e792b6042f0bcb0c30f809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { AddonEnabledRepositoryImpl } from '../../../src/content/repositories/AddonEnabledRepository';
import { expect } from 'chai';

describe('AddonEnabledRepositoryImpl', () => {
  it('updates and gets current value', () => {
    const sut = new AddonEnabledRepositoryImpl();

    sut.set(true);
    expect(sut.get()).to.be.true;

    sut.set(false);
    expect(sut.get()).to.be.false;
  });
});