From d935f03636fc0f2385de7e19c9d98bc900e438fe Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 18 Aug 2020 21:42:36 -0400 Subject: [PATCH] fix(openapi): tests --- public/openapi/read.yaml | 2 ++ test/api.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/openapi/read.yaml b/public/openapi/read.yaml index 1e2329197fb4..7c025a861915 100644 --- a/public/openapi/read.yaml +++ b/public/openapi/read.yaml @@ -4954,6 +4954,8 @@ paths: type: number perPage: type: number + sort: + type: string title: type: string - $ref: components/schemas/Pagination.yaml#/Pagination diff --git a/test/api.js b/test/api.js index ba06b4e929c1..15e3fded316b 100644 --- a/test/api.js +++ b/test/api.js @@ -66,7 +66,7 @@ describe('Read API', async () => { await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid }); await socketUser.exportUploads({ uid: adminUid }, { uid: adminUid }); // wait for export child process to complete - // await wait(20000); + await wait(20000); // Attach a search hook so /api/search is enabled plugins.registerHook('core', {