diff --git a/packages/renderer/src/regl/__tests__/model.spec.ts b/packages/renderer/src/regl/__tests__/model.spec.ts index fa86ef3973..6b5703e1f4 100644 --- a/packages/renderer/src/regl/__tests__/model.spec.ts +++ b/packages/renderer/src/regl/__tests__/model.spec.ts @@ -3,7 +3,9 @@ import regl from 'regl'; import ReglModel from '../ReglModel'; // TODO: 暂时在 travis 跳过这个测试用例,本地能跑过 -(process.env.NODE_ENV === 'test' ? describe.skip : describe)('ReglModel', () => { +const describeFn = process.env.NODE_ENV === 'test' ? describe.skip : describe; + +describeFn('ReglModel', () => { let gl; let reGL: regl.Regl;