Fix search tests
This commit is contained in:
parent
dd0ebb7151
commit
5e2fea3ab9
|
@ -38,7 +38,7 @@ async function run () {
|
||||||
|
|
||||||
const server = await flushAndRunServer(1, {}, [], { hideLogs: false, execArgv: [ '--inspect' ] })
|
const server = await flushAndRunServer(1, {}, [], { hideLogs: false, execArgv: [ '--inspect' ] })
|
||||||
|
|
||||||
const cleanup = async () => {
|
const cleanup = async () => {
|
||||||
console.log('Killing server')
|
console.log('Killing server')
|
||||||
await killallServers([ server ])
|
await killallServers([ server ])
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ export class SearchCommand extends AbstractCommand {
|
||||||
...options,
|
...options,
|
||||||
|
|
||||||
path,
|
path,
|
||||||
query: { sort: '-publishedAt', ...search },
|
query: search,
|
||||||
implicitToken: false,
|
implicitToken: false,
|
||||||
defaultExpectedStatus: HttpStatusCode.OK_200
|
defaultExpectedStatus: HttpStatusCode.OK_200
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue