Skip to content

Commit

Permalink
Update StoreRegistry error messages for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Feb 3, 2025
1 parent 41ac87e commit 44dee52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_package/tests/StoreRegistry.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('', () => {
it('StoreRegistry throws error for retrieving unregistered store', () => {
expect.assertions(1);
expect(() => StoreRegistry.getStoreGenerator('foobar')).toThrow(
/Could not find store registered with name 'foobar'\. Registered store names include/,
/Could not find store generator registered with name foobar\. Registered store generator names include/,
);
});

Expand All @@ -73,7 +73,7 @@ describe('', () => {
it('StoreRegistry throws error for retrieving unregistered hydrated store', () => {
expect.assertions(1);
expect(() => StoreRegistry.getStore('foobar')).toThrow(
/Could not find hydrated store with name 'foobar'\. Hydrated store names include/,
/Could not find hydrated store registered with name foobar\. Registered hydrated store names include/,
);
});

Expand Down

0 comments on commit 44dee52

Please sign in to comment.