diff --git a/server/tests/js_tests/libs/dialClient.js b/server/tests/js_tests/libs/dialClient.js index d6d27b5..37595da 100644 --- a/server/tests/js_tests/libs/dialClient.js +++ b/server/tests/js_tests/libs/dialClient.js @@ -279,7 +279,7 @@ function constructAppResourceUrl(host, appName) { return new Q() .then(getAppsUrl.bind(null, host)) .then(function (appUrl) { - return appUrl.replace(/\/+$/, `/${appName}`); + return appUrl.replace(/\/*$/, `/${appName}`); }); } @@ -423,4 +423,4 @@ module.exports.hideApplicationInstance = hideApplicationInstance; module.exports.constructAppResourceUrl = constructAppResourceUrl; module.exports.getAppsUrl = getAppsUrl; module.exports.getLocation = getLocation; -module.exports.sleepSystem = sleepSystem; \ No newline at end of file +module.exports.sleepSystem = sleepSystem;