英文: Angular unit test case for this.document.body.setAttribute() 问题 你可以使用Jasmine和Karma来编写这行代码的单元测试。首...
Angular10 attribute directive mock is not working. Trying to get element in template: cannot read properties of null (reading 'nativeElement')
英文: Angular10 attribute directive mock is not working. Trying to get element in template: cannot rea...
Error with SpyObj how to reassign the value of spy
英文: Error with SpyObj how to reassign the value of spy 问题 我对Jasmine相对不熟悉,所以请原谅我的愚蠢问题。 我尝试只为一个it块覆盖间谍...
Unit testing a component that is getting data from Angular Behavior Subject.
英文: Unit testing a compnent that is getting data from Angular Behavior Subject 问题 我有这个名为EmployeeServ...
Karma在成功执行单元测试后挂起30秒。
英文: Karma hangs for 30 seconds after successfully executing unit tests 问题 以下是翻译好的部分: 在所有单元测试成功执行之后,K...
karma angular测试路由导航
英文: karma angular test router navigate 问题 我正在开发一个Angular练习应用程序,并使用Karma和Jasmine进行测试。我试图测试路由器的导航功能。问题...
I got and error: TypeError: this.todos$.pipe is not a function when create an jasmine.SpyObj as a fack service
英文: I got and error: TypeError: this.todos$.pipe is not a function when create an jasmine.SpyObj as ...
如何在Karma Jasmine测试用例中为带有HTMLElement的if else编写测试用例?
英文: How to write test case for if else with htmlelement in karma jasmine test case? 问题 The code you ...
Unit testing a component that is getting data from Angular Replay Subject.
英文: Unit testing a compnent that is getting data from Angular Replay Subject 问题 以下是您的翻译部分: 我有一个名为Emp...
你可以从Jasmine的`expect()`语句中获得返回值吗?
英文: Can I get a return value from an expect() statement in Jasmine? 问题 I have some test automation c...