mirror of https://github.com/iconify/api.git
fix: fix unit test, set default search results limit to 64, matching old API
This commit is contained in:
parent
f090386170
commit
3f69d3179d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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: {},
|
||||
|
|
|
|||
Loading…
Reference in New Issue