feat: harden phase one workflows

This commit is contained in:
王鹏
2026-07-14 16:04:51 +08:00
parent 47f4a24760
commit 767534df48
103 changed files with 4849 additions and 388 deletions

View File

@@ -0,0 +1,12 @@
const { buildProductQuery } = require('./productApi')
describe('buildProductQuery', () => {
test('keeps pagination and optional filters stable', () => {
expect(buildProductQuery(2, '苹果')).toEqual({
pageNo: 1,
pageSize: 20,
categoryId: 2,
keyword: '苹果'
})
})
})