You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useDeferredRegistrations will now trigger a deferred registration update whenever the data object reference changes, even if no global data has been fetch or no feature flags changed.
Copy file name to clipboardExpand all lines: packages/firefly/tests/useCanUpdateDeferredRegistrations.test.tsx
+1-100Lines changed: 1 addition & 100 deletions
Original file line number
Diff line number
Diff line change
@@ -17,45 +17,9 @@ function renderUseCanUpdateDeferredRegistrationsHook<TProps>(state: AppRouterSta
17
17
});
18
18
}
19
19
20
-
test.concurrent("when modules are ready, the deferred registrations has been registered once, and the public data has been updated, return true",({ expect })=>{
20
+
test.concurrent("when modules are ready, return true",({ expect })=>{
const{ result }=renderUseCanUpdateDeferredRegistrationsHook(state);
27
-
28
-
expect(result.current).toBeTruthy();
29
-
});
30
-
31
-
test.concurrent("when modules are ready, the deferred registrations has been registered once, and the protected data has been updated, return true",({ expect })=>{
const{ result }=renderUseCanUpdateDeferredRegistrationsHook(state);
38
-
39
-
expect(result.current).toBeTruthy();
40
-
});
41
-
42
-
test.concurrent("when modules are ready, the deferred registrations has been registered once, the public data has been updated, and the protected data has been updated, return true",({ expect })=>{
const{ result }=renderUseCanUpdateDeferredRegistrationsHook(state);
50
-
51
-
expect(result.current).toBeTruthy();
52
-
});
53
-
54
-
test.concurrent("when modules are ready, the deferred registrations has been registered once, and the feature flags has been updated, return true",({ expect })=>{
0 commit comments