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