Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samirsilwal committed Oct 20, 2024
1 parent 3eb0c34 commit d1fef5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/domain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@ describe('store: [adapter=DOMAIN]', () => {
const activeDomain = getActiveDomain();
expect(activeDomain[STORE_KEY]).to.equal(null);
});

it('should do nothing if the store is not initialized.', () => {
expect(globalStore.reset).to.not.throw();
});
});

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

globalStore.initialize(adapter)(callback);
});

it('should do nothing if the store is not initialized.', () => {
expect(globalStore.del.bind(globalStore, 'foo')).to.not.throw();
});
});

describe('Test Cases:', () => {
Expand Down

0 comments on commit d1fef5b

Please sign in to comment.