test: 完善测试用例
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user