feat: harden phase one workflows
This commit is contained in:
12
miniapp/miniprogram/api/secondGoodsApi.test.js
Normal file
12
miniapp/miniprogram/api/secondGoodsApi.test.js
Normal 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: '儿童'
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user