Skip to content

Commit 36649b4

Browse files
committed
Fix test for the added reset function
1 parent c3a771d commit 36649b4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/domain.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,14 +490,19 @@ describe('store: [adapter=DOMAIN]', () => {
490490
const callback = () => {
491491
globalStore.set({ foo: 'foo', bar: 'bar' });
492492

493-
globalStore.reset();
493+
expect(globalStore.isInitialized()).to.equal(true);
494494

495-
expect(globalStore.isInitialized()).to.equal(false);
495+
expect(globalStore.get('foo')).to.equal('foo');
496+
expect(globalStore.get('bar')).to.equal('bar');
496497

497498
done();
498499
};
499500

500501
globalStore.initialize(adapter)(callback);
502+
503+
globalStore.reset();
504+
505+
expect(globalStore.isInitialized()).to.equal(false);
501506
});
502507

503508
it('should reset the store by removing a specific value by key', (done) => {

0 commit comments

Comments
 (0)