@@ -14,11 +14,13 @@ function storeGenerator2(props) {
1414 return createStore ( reducer , props ) ;
1515}
1616
17- describe ( '' , ( ) => {
18- expect . assertions ( 11 ) ;
17+ describe ( 'StoreRegistry' , ( ) => {
18+ beforeEach ( ( ) => {
19+ StoreRegistry . stores ( ) . clear ( ) ;
20+ } ) ;
21+
1922 it ( 'StoreRegistry throws error for registering null or undefined store' , ( ) => {
2023 expect . assertions ( 2 ) ;
21- StoreRegistry . stores ( ) . clear ( ) ;
2224 expect ( ( ) => StoreRegistry . register ( { storeGenerator : null } ) ) . toThrow (
2325 / C a l l e d R e a c t O n R a i l s .r e g i s t e r S t o r e G e n e r a t o r s w i t h a n u l l o r u n d e f i n e d a s a v a l u e / ,
2426 ) ;
@@ -29,7 +31,6 @@ describe('', () => {
2931
3032 it ( 'StoreRegistry throws error for retrieving unregistered store' , ( ) => {
3133 expect . assertions ( 1 ) ;
32- StoreRegistry . stores ( ) . clear ( ) ;
3334 expect ( ( ) => StoreRegistry . getStore ( 'foobar' ) ) . toThrow (
3435 / T h e r e a r e n o s t o r e s h y d r a t e d a n d y o u a r e r e q u e s t i n g t h e s t o r e / ,
3536 ) ;
@@ -46,7 +47,7 @@ describe('', () => {
4647 expect ( actual2 ) . toEqual ( expected2 ) ;
4748 } ) ;
4849
49- it ( 'StoreRegistry throws error for retrieving unregistered store' , ( ) => {
50+ it ( 'StoreRegistry throws error for retrieving unregistered store generator ' , ( ) => {
5051 expect . assertions ( 1 ) ;
5152 expect ( ( ) => StoreRegistry . getStoreGenerator ( 'foobar' ) ) . toThrow (
5253 / C o u l d n o t f i n d s t o r e g e n e r a t o r r e g i s t e r e d w i t h n a m e f o o b a r \. R e g i s t e r e d s t o r e g e n e r a t o r n a m e s i n c l u d e / ,
0 commit comments