Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d1fef5b

Browse files
committedOct 20, 2024·
Update tests
1 parent 3eb0c34 commit d1fef5b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎test/domain.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,10 @@ describe('store: [adapter=DOMAIN]', () => {
508508
const activeDomain = getActiveDomain();
509509
expect(activeDomain[STORE_KEY]).to.equal(null);
510510
});
511+
512+
it('should do nothing if the store is not initialized.', () => {
513+
expect(globalStore.reset).to.not.throw();
514+
});
511515
});
512516

513517
describe('del():', () => {
@@ -546,6 +550,10 @@ describe('store: [adapter=DOMAIN]', () => {
546550

547551
globalStore.initialize(adapter)(callback);
548552
});
553+
554+
it('should do nothing if the store is not initialized.', () => {
555+
expect(globalStore.del.bind(globalStore, 'foo')).to.not.throw();
556+
});
549557
});
550558

551559
describe('Test Cases:', () => {

0 commit comments

Comments
 (0)
Please sign in to comment.