]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix search tests
authorChocobozzz <me@florianbigard.com>
Mon, 12 Jul 2021 14:06:57 +0000 (16:06 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 20 Jul 2021 13:27:18 +0000 (15:27 +0200)
server/tools/test-live.ts
shared/extra-utils/search/search-command.ts

index 3d1198d9c99ded140b731df0d5cbf4d100947b70..7004e98e88f6602d20607e390009a0c8c667c2b0 100644 (file)
@@ -38,7 +38,7 @@ async function run () {
 
   const server = await flushAndRunServer(1, {}, [], { hideLogs: false, execArgv: [ '--inspect' ] })
 
-  const cleanup =  async () => {
+  const cleanup = async () => {
     console.log('Killing server')
     await killallServers([ server ])
   }
index b6054f093f456fcf69d37332b83470d9304759aa..7539a21ecae8ab133cf362db37032f8374d98a65 100644 (file)
@@ -90,7 +90,7 @@ export class SearchCommand extends AbstractCommand {
       ...options,
 
       path,
-      query: { sort: '-publishedAt', ...search },
+      query: search,
       implicitToken: false,
       defaultExpectedStatus: HttpStatusCode.OK_200
     })