mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-16 19:58:12 +00:00
21 lines
506 B
TypeScript
21 lines
506 B
TypeScript
import test, { ExecutionContext } from 'ava';
|
|
import sinon, { SinonFakeTimers } from 'sinon';
|
|
|
|
import { create } from '../../../src/runtime';
|
|
|
|
import { dataSource } from './_datasource-runtime';
|
|
import { normalScene } from './_macro-normal';
|
|
|
|
test.before((t: ExecutionContext<{ clock: SinonFakeTimers }>) => {
|
|
t.context.clock = sinon.useFakeTimers();
|
|
});
|
|
|
|
test.after((t: ExecutionContext<{ clock: SinonFakeTimers }>) => {
|
|
t.context.clock.restore();
|
|
});
|
|
|
|
test(normalScene, {
|
|
create,
|
|
dataSource,
|
|
});
|