mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
18 lines
457 B
TypeScript
18 lines
457 B
TypeScript
import requireUtils from '../../../src/plugins/common/requireUtils';
|
|
import { ICodeStruct } from '../../../src/types';
|
|
|
|
describe('tests/plugins/common/requireUtils', () => {
|
|
it('should works', async () => {
|
|
const plugin = requireUtils();
|
|
const ctx: ICodeStruct = {
|
|
chunks: [],
|
|
depNames: [],
|
|
ir: {},
|
|
contextData: {},
|
|
};
|
|
|
|
const newCtx = await plugin.apply(ctx, [ctx]);
|
|
expect(newCtx).toMatchSnapshot();
|
|
});
|
|
});
|