|
|
|
@ -36,7 +36,7 @@ describe('ContentsService', () => { |
|
|
|
name: 'json query', |
|
|
|
query: { take: 17, skip: 13, query: { fullText: 'my-query' } }, |
|
|
|
requestBody: { q: sanitize({ fullText: 'my-query', take: 17, skip: 13 }) }, |
|
|
|
requestString: `q=${JSON.stringify(sanitize({ fullText: 'my-query', take: 17, skip: 13 }))}`, |
|
|
|
requestString: `q=${encodeURIComponent(JSON.stringify(sanitize({ fullText: 'my-query', take: 17, skip: 13 })))}`, |
|
|
|
noSlowTotal: null, |
|
|
|
noTotal: null, |
|
|
|
}, |
|
|
|
@ -52,7 +52,7 @@ describe('ContentsService', () => { |
|
|
|
name: 'json query without total', |
|
|
|
query: { take: 17, skip: 13, query: { fullText: 'my-query' }, noTotal: true, noSlowTotal: true }, |
|
|
|
requestBody: { q: sanitize({ fullText: 'my-query', take: 17, skip: 13 }) }, |
|
|
|
requestString: `q=${JSON.stringify(sanitize({ fullText: 'my-query', take: 17, skip: 13 }))}`, |
|
|
|
requestString: `q=${encodeURIComponent(JSON.stringify(sanitize({ fullText: 'my-query', take: 17, skip: 13 })))}`, |
|
|
|
noSlowTotal: '1', |
|
|
|
noTotal: '1', |
|
|
|
}, |
|
|
|
|