19 lines
500 B
TypeScript
19 lines
500 B
TypeScript
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} 必须保留导出`);
|
|
}
|
|
});
|