Getting TypeError while running Angular unit test

I am getting the following TypeError while running the Angular unit test.  What is causing this?

TypeError: Cannot read property 'replace' of undefined at Object.u.visitor_service_request (http://tags.tiqcdn.com/utag/oportun/main/qa/utag.1.js?utv=ut4.46.202004162347:56:111) at http://tags.tiqcdn.com/utag/oportun/main/qa/utag.1.js?utv=ut4.46.202004162347:56:372 at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone.js:423:1) at AsyncTestZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.AsyncTestZoneSpec.onInvokeTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone-testing.js:698:1) at ProxyZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.ProxyZoneSpec.onInvokeTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone-testing.js:317:1) at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone.js:422:1) at Zone../node_modules/zone.js/dist/zone.js.Zone.runTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone.js:195:1) at ./node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone.js:498:1) at ZoneTask.invoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone.js:487:1) at timer (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone.js:2281:1)

Accepted Solutions (0)

Answers (0)