16 lines
784 B
TypeScript
16 lines
784 B
TypeScript
/**
|
|
* features/chat/api/shipping.api.legacy-entrypoints.spec.ts
|
|
* 用途:锁定 Shipping 前端 API 不再暴露直接匹配/导出业务入口。
|
|
* 依赖:shipping.api 的模块导出。
|
|
* 逻辑:正式业务动作只能由 Projection + Process Gate Action 驱动;旧函数名不得重新被页面调用。
|
|
*/
|
|
import * as shippingApi from './shipping.api';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('shipping API runtime entrypoints', () => {
|
|
it('does not expose direct inventory match or Excel generation actions', () => {
|
|
expect(Object.prototype.hasOwnProperty.call(shippingApi, 'matchWorkspaceShippingInventory')).toBe(false);
|
|
expect(Object.prototype.hasOwnProperty.call(shippingApi, 'generateWorkspaceShippingExcel')).toBe(false);
|
|
});
|
|
});
|