We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a771d commit 36649b4Copy full SHA for 36649b4
test/domain.test.ts
@@ -490,14 +490,19 @@ describe('store: [adapter=DOMAIN]', () => {
490
const callback = () => {
491
globalStore.set({ foo: 'foo', bar: 'bar' });
492
493
- globalStore.reset();
+ expect(globalStore.isInitialized()).to.equal(true);
494
495
- expect(globalStore.isInitialized()).to.equal(false);
+ expect(globalStore.get('foo')).to.equal('foo');
496
+ expect(globalStore.get('bar')).to.equal('bar');
497
498
done();
499
};
500
501
globalStore.initialize(adapter)(callback);
502
+
503
+ globalStore.reset();
504
505
+ expect(globalStore.isInitialized()).to.equal(false);
506
});
507
508
it('should reset the store by removing a specific value by key', (done) => {
0 commit comments