-
Bug
-
Resolution: Fixed
-
Blocker
-
-
Blue Ocean 1.4 - beta 1
(window.location.href.split('?')[1] || '').split('&')
window.location in unit testing is normally undefined and can be until href.
our unit tests are failing now with
/home/thorsten/opt/src/cloudbees/operations-center-all/bluesteel/bluesteel-cjoc/node_modules/@jenkins-cd/blueocean-core-js/dist/js/config.js:19 (window.location.href.split('?')[1] || '').split('&').forEach(function (p) { ^ TypeError: Cannot read property 'href' of undefined at Object.<anonymous> (/source/js/config.js:13:2)