From 8915713b88505d72e7897b79c7882d84fc46aec5 Mon Sep 17 00:00:00 2001 From: AnthonyLzq Date: Mon, 5 Sep 2022 08:52:28 -0500 Subject: [PATCH] fix: port in test in lib function --- lib/src/functions/tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/functions/tests.js b/lib/src/functions/tests.js index 8e819c4..0ea29f1 100644 --- a/lib/src/functions/tests.js +++ b/lib/src/functions/tests.js @@ -57,7 +57,7 @@ const ajv = addFormats(new Ajv(), ['email']) .addKeyword('kind') .addKeyword('modifier') -const BASE_URL = 'http://localhost:1996' +const BASE_URL = 'http://localhost:${process.env.PORT || 1996}' const validator = ( schema: TObject, object: unknown @@ -356,7 +356,7 @@ const ajv = new Ajv({ nullable: true }) -const BASE_URL = 'http://localhost:1996' +const BASE_URL = 'http://localhost:${process.env.PORT || 1996}' const validator = ( schema: TObject, object: unknown