来源:https://stackoverflow.com/questions/64386626/how-to-write-unit-test-for-window-location-pathname-with-jasmine-spy 标签 angular typescript jasmine karma-jasmine istanbul