Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.6 kB
3
Indexable
Never
TypeError: Cannot redefine property: pathname
            at <Jasmine>
            at UserContext.<anonymous> (src/app/services/app-state.service.spec.ts:140:12)
            at ZoneDelegate.invoke (node_modules/zone.js/fesm2015/zone.js:372:1)
            at ProxyZoneSpec.onInvoke (node_modules/zone.js/fesm2015/zone-testing.js:287:1)
            at ZoneDelegate.invoke (node_modules/zone.js/fesm2015/zone.js:371:1)
            at Zone.run (node_modules/zone.js/fesm2015/zone.js:134:1)
            at runInTestZone (node_modules/zone.js/fesm2015/zone-testing.js:567:1)
            at UserContext.<anonymous> (node_modules/zone.js/fesm2015/zone-testing.js:582:1)
            at <Jasmine>
            at ZoneDelegate.invokeTask (node_modules/zone.js/fesm2015/zone.js:406:1)
            at Zone.runTask (node_modules/zone.js/fesm2015/zone.js:178:1)
        Error: <spyOnProperty> : pathname is not declared configurable
        Usage: spyOnProperty(<object>, <propName>, [accessType])
        error properties: Object({ originalStack: 'Error: <spyOnProperty> : pathname is not declared configurable
        Usage: spyOnProperty(<object>, <propName>, [accessType])
            at new ZoneAwareError (node_modules/zone.js/fesm2015/zone-error.js:92:1)
            at UserContext.<anonymous> (src/app/services/app-state.service.spec.ts:161:7)
            at ZoneDelegate.invoke (node_modules/zone.js/fesm2015/zone.js:372:1)
            ...
        Error: <spyOnProperty> : pathname is not declared configurable
        Usage: spyOnProperty(<object>, <propName>, [accessType])
            at <Jasmine>