Skip to content

Commit 44dee52

Browse files
Update StoreRegistry error messages for clarity
1 parent 41ac87e commit 44dee52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node_package/tests/StoreRegistry.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('', () => {
4949
it('StoreRegistry throws error for retrieving unregistered store', () => {
5050
expect.assertions(1);
5151
expect(() => StoreRegistry.getStoreGenerator('foobar')).toThrow(
52-
/Could not find store registered with name 'foobar'\. Registered store names include/,
52+
/Could not find store generator registered with name foobar\. Registered store generator names include/,
5353
);
5454
});
5555

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

0 commit comments

Comments
 (0)