fix: fix unit test, set default search results limit to 64, matching old API

This commit is contained in:
Vjacheslav Trushkin 2022-11-03 21:36:10 +02:00
parent f090386170
commit 3f69d3179d
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import { checkJSONPQuery, sendJSONResponse } from '../helpers/json';
const minSearchLimit = 32;
const maxSearchLimit = 999;
const defaultSearchLimit = maxSearchLimit;
const defaultSearchLimit = minSearchLimit * 2;
/**
* Send API v2 response

View File

@ -354,10 +354,10 @@ describe('Splitting keywords', () => {
});
// Too short for partial
expect(splitKeyword('ab')).toEqual({
expect(splitKeyword('a')).toEqual({
searches: [
{
keywords: ['ab'],
keywords: ['a'],
},
],
params: {},