2026-07-10 17:21:38 +08:00

18 lines
442 B
TypeScript

import { describe, it } from 'node:test';
import assert from 'node:assert/strict';
import { init } from '@llm-to-agent/core';
describe('@llm-to-agent/core', () => {
it('init() 不抛异常', () => {
assert.doesNotThrow(() => init());
});
it('core 通过 re-export 暴露 types', async () => {
const mod = await import('@llm-to-agent/core');
assert.equal(typeof mod.init, 'function', '应导出 init 函数');
});
});