From b2f3828f5ad6445d2c667abb3d94f919412a29b0 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 30 Jan 2021 07:37:39 +0000 Subject: [PATCH] Update tests/backend/specs/api/api.js Co-authored-by: Richard Hansen --- tests/backend/specs/api/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/backend/specs/api/api.js b/tests/backend/specs/api/api.js index 98f4fc698..1b857ec02 100644 --- a/tests/backend/specs/api/api.js +++ b/tests/backend/specs/api/api.js @@ -43,8 +43,8 @@ describe(__filename, function () { const {valid, errors} = validateOpenAPI(res.body, 3); if (!valid) { const prettyErrors = JSON.stringify(errors, null, 2); - throw new Error(`Document is not valid OpenAPI. - ${errors.length} validation errors:\n${prettyErrors}`); + throw new Error('Document is not valid OpenAPI. ' + + `${errors.length} validation errors:\n${prettyErrors}`); } return; })