Match-id-33d03d13bb50e96e6db086f816052cd2a6c6d7ae
This commit is contained in:
parent
ed95b1dbd6
commit
c3a580fc97
|
@ -1,9 +1,9 @@
|
||||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||||
import * as Horizon from '@cloudsop/horizon/index.ts';
|
import * as Horizon from '@cloudsop/horizon/index.ts';
|
||||||
import * as LogUtils from '../jest/logUtils';
|
import * as LogUtils from '../jest/logUtils';
|
||||||
import { act } from '../jest/customMatcher';
|
|
||||||
|
|
||||||
describe('Dom Input', () => {
|
describe('Dom Input', () => {
|
||||||
|
const { act } = Horizon;
|
||||||
|
|
||||||
describe('type checkbox', () => {
|
describe('type checkbox', () => {
|
||||||
it('没有设置checked属性时,控制台不会报错', () => {
|
it('没有设置checked属性时,控制台不会报错', () => {
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
import { runAsyncEffects } from '../../../libs/horizon/src/renderer/submit/HookEffectHandler';
|
|
||||||
import { callRenderQueueImmediate } from '../../../libs/horizon/src/renderer/taskExecutor/RenderQueue';
|
|
||||||
import { asyncUpdates } from '../../../libs/horizon/src/renderer/TreeBuilder';
|
|
||||||
|
|
||||||
const act = (fun) => {
|
|
||||||
asyncUpdates(fun);
|
|
||||||
callRenderQueueImmediate();
|
|
||||||
runAsyncEffects();
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
act
|
|
||||||
};
|
|
Loading…
Reference in New Issue