13 lines
334 B
JavaScript
13 lines
334 B
JavaScript
const { buildSecondGoodsQuery } = require('./secondGoodsApi')
|
|
|
|
describe('buildSecondGoodsQuery', () => {
|
|
test('keeps pagination and optional filters stable', () => {
|
|
expect(buildSecondGoodsQuery('母婴', '儿童')).toEqual({
|
|
pageNo: 1,
|
|
pageSize: 20,
|
|
category: '母婴',
|
|
keyword: '儿童'
|
|
})
|
|
})
|
|
})
|