We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb0c34 commit d1fef5bCopy full SHA for d1fef5b
test/domain.test.ts
@@ -508,6 +508,10 @@ describe('store: [adapter=DOMAIN]', () => {
508
const activeDomain = getActiveDomain();
509
expect(activeDomain[STORE_KEY]).to.equal(null);
510
});
511
+
512
+ it('should do nothing if the store is not initialized.', () => {
513
+ expect(globalStore.reset).to.not.throw();
514
+ });
515
516
517
describe('del():', () => {
@@ -546,6 +550,10 @@ describe('store: [adapter=DOMAIN]', () => {
546
550
547
551
globalStore.initialize(adapter)(callback);
548
552
553
554
555
+ expect(globalStore.del.bind(globalStore, 'foo')).to.not.throw();
556
549
557
558
559
describe('Test Cases:', () => {
0 commit comments