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 { buildSecondGoodsQuery } = require('./secondGoodsApi')
describe('buildSecondGoodsQuery', () => {
test('keeps pagination and optional filters stable', () => {
expect(buildSecondGoodsQuery('母婴', '儿童')).toEqual({
pageNo: 1,
pageSize: 20,
category: '母婴',
keyword: '儿童'
})
})
})