diff --git a/ui-v2/tests/helpers/type-to-url.js b/ui-v2/tests/helpers/type-to-url.js index 0b2c8f582..470a5f291 100644 --- a/ui-v2/tests/helpers/type-to-url.js +++ b/ui-v2/tests/helpers/type-to-url.js @@ -17,9 +17,7 @@ export default function(type) { url = ['/v1/acl/list']; break; case 'session': - url = function(url) { - return url.indexOf('/v1/session/node/') === 0; - }; + url = ['/v1/session/node/']; break; } return function(actual) {