UNPKG

@copperjs/copper

Version:
24 lines 832 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const configStore_1 = require("./configStore"); describe('configStore', () => { let store; beforeEach(() => { store = new configStore_1.ConfigStore({ foo: 'bar', bar: 'baz' }); }); it('should return store value', () => { chai_1.expect(store.value.foo).to.equal('bar'); }); it('should update store value', () => { store.value = { foo: 'baz' }; chai_1.expect(store.value.foo).to.equal('baz'); chai_1.expect(store.value.bar).to.equal('baz'); }); it('should reset store to defaults', () => { store.value.foo = 'baz'; store.reset(); chai_1.expect(store.value.foo).to.equal('bar'); }); }); //# sourceMappingURL=common.test.js.map