1
0
mirror of synced 2026-03-23 11:18:36 +08:00

test: 完善测试用例

This commit is contained in:
roymondchen
2024-05-09 20:49:54 +08:00
parent ff60d0238b
commit 831204663a
8 changed files with 88 additions and 59 deletions

View File

@@ -1,10 +1,17 @@
import { describe, expect, test } from 'vitest';
import Core from '@tmagic/core';
import { NodeType } from '@tmagic/schema';
import { type MApp, NodeType } from '@tmagic/schema';
import { DataSource, DataSourceManager } from '@data-source/index';
class Core {
public dsl?: MApp;
constructor(options: any) {
this.dsl = options.config;
}
}
const app = new Core({
config: {
type: NodeType.ROOT,

View File

@@ -1,10 +1,17 @@
import { describe, expect, test } from 'vitest';
import Core from '@tmagic/core';
import { MApp, NodeType } from '@tmagic/schema';
import { createDataSourceManager, DataSourceManager } from '@data-source/index';
class Core {
public dsl?: MApp;
constructor(options: any) {
this.dsl = options.config;
}
}
const dsl: MApp = {
type: NodeType.ROOT,
id: 'app_1',