tests: solved _endOfLoginResponse with popup loginStyle supports ROOT_URL_PATH_PREFIX

This commit is contained in:
Gabriel Grubba
2022-12-28 14:43:45 -03:00
parent 0e695b1d19
commit fb7197689f

View File

@@ -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);
}
);