feat(平台): 补齐服务端持久化和AI拆解契约
This commit is contained in:
12
apps/web/lib/product-overview-persistence.test.ts
Normal file
12
apps/web/lib/product-overview-persistence.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import { shouldPersistRemoteOverview } from './product-overview-persistence';
|
||||
|
||||
test('does not persist an empty remote overview', () => {
|
||||
assert.equal(shouldPersistRemoteOverview([]), false);
|
||||
});
|
||||
|
||||
test('persists a non-empty remote overview', () => {
|
||||
assert.equal(shouldPersistRemoteOverview([{ id: 'product-1' }]), true);
|
||||
});
|
||||
Reference in New Issue
Block a user