From fb7197689fb6ceb4b9b446c040762d6c544f8fec Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Wed, 28 Dec 2022 14:43:45 -0300 Subject: [PATCH] tests: solved _endOfLoginResponse with popup loginStyle supports ROOT_URL_PATH_PREFIX --- packages/oauth/oauth_tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/oauth/oauth_tests.js b/packages/oauth/oauth_tests.js index 8fe2ca5376..fb7014cd82 100644 --- a/packages/oauth/oauth_tests.js +++ b/packages/oauth/oauth_tests.js @@ -77,8 +77,8 @@ Tinytest.addAsync("oauth - _endOfLoginResponse with popup loginStyle supports un } ); -Tinytest.add("oauth - _endOfLoginResponse with popup loginStyle supports ROOT_URL_PATH_PREFIX", - test => { +Tinytest.addAsync("oauth - _endOfLoginResponse with popup loginStyle supports ROOT_URL_PATH_PREFIX", + async test => { const rootUrlPathPrefix = __meteor_runtime_config__.ROOT_URL_PATH_PREFIX; __meteor_runtime_config__.ROOT_URL_PATH_PREFIX = '/test-root-url-prefix'; const res = { @@ -95,7 +95,7 @@ Tinytest.add("oauth - _endOfLoginResponse with popup loginStyle supports ROOT_UR credentials: {}, loginStyle: 'popup' }; - OAuth._endOfLoginResponse(res, details); + await OAuth._endOfLoginResponse(res, details); } );