File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
redisinsight/ui/src/utils Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export const mockedStoreFn = () => mockStore(initialStateDefault)
171
171
172
172
// Set the mock store reference for the dynamic store wrapper
173
173
// This ensures that store-dynamic works correctly in tests
174
- setStoreRef ( mockedStore as any )
174
+ setStoreRef ( mockedStore )
175
175
176
176
// insert root state to the render Component
177
177
const render = (
@@ -183,9 +183,8 @@ const render = (
183
183
...renderOptions
184
184
} : Options = initialStateDefault ,
185
185
) => {
186
- // Set the store reference for the dynamic store wrapper if a custom store is provided
187
186
if ( store !== mockedStore ) {
188
- setStoreRef ( store as any )
187
+ setStoreRef ( store )
189
188
}
190
189
191
190
const Wrapper = ( { children } : { children : JSX . Element } ) => (
@@ -208,9 +207,8 @@ const renderHook = (
208
207
...renderOptions
209
208
} : Options = initialStateDefault ,
210
209
) => {
211
- // Set the store reference for the dynamic store wrapper if a custom store is provided
212
210
if ( store !== mockedStore ) {
213
- setStoreRef ( store as any )
211
+ setStoreRef ( store )
214
212
}
215
213
216
214
const Wrapper = ( { children } : { children : JSX . Element } ) => (
You can’t perform that action at this time.
0 commit comments