refactor: 拆分 API Client 资源模块
This commit is contained in:
1 parent
f3adf7bc15
commit
357f271639
24 files changed
+1280
-905
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { test } from "node:test";
|
||||
import * as apiClientModule from "../src/index.js";
|
||||
|
||||
test("聚合导出保持既有公共契约", () => {
|
||||
const expectedExports = [
|
||||
"ApiClient",
|
||||
"ApiClientError",
|
||||
"apiClientName",
|
||||
"isTrustContentComplete",
|
||||
"projectBrandAliases",
|
||||
"projectTrustPresentation",
|
||||
];
|
||||
|
||||
for (const exportName of expectedExports) {
|
||||
assert.ok(exportName in apiClientModule, `${exportName} 必须保留导出`);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user