Match-id-dcf83e9762d769d5a52954b612df113c9bf42253
This commit is contained in:
parent
46922ff307
commit
7dce0e69e3
|
@ -1,5 +1,5 @@
|
||||||
import { runAsyncEffects } from '../../../libs/horizon/src/renderer/submit/HookEffectHandler'
|
import { runAsyncEffects } from '../../../libs/horizon/src/renderer/submit/HookEffectHandler';
|
||||||
import { syncUpdates } from '../../../libs/horizon/src/renderer/TreeBuilder'
|
import { callRenderQueueImmediate } from '../../../libs/horizon/src/renderer/taskExecutor/RenderQueue';
|
||||||
|
|
||||||
function runAssertion(fn) {
|
function runAssertion(fn) {
|
||||||
try {
|
try {
|
||||||
|
@ -21,7 +21,8 @@ function toMatchValue(LogUtils, expectedValues) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const act = (fun) => {
|
const act = (fun) => {
|
||||||
syncUpdates(fun);
|
fun();
|
||||||
|
callRenderQueueImmediate();
|
||||||
runAsyncEffects();
|
runAsyncEffects();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue