python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Angular + karma tests failing intermittently
I recently upgraded our project's application version from 9 to 13 and as a part of it also upgraded few packages used including chromedriver, node, karma etc. Now we are using node v16 and angular v1...
mike2611
Votes: 0
Answers: 1
Karma-Jasmine How to test in angular a Router component
I want to test this header component but I don't know how to do it, Im working with angular, just want to test a router function
This is the html
<header class="site-header">
<nav...
Jhon Serna
Votes: 0
Answers: 1
How to avoid time in a test when expecting a Promise with setTimeout in Jasmine
Given I have the following code:
public returnData(): Promise<any> {
return new Promise((resolve) => {
setTimeout(() => {
resolve({
data: true,
});
...
Baronvonbirra
Votes: 0
Answers: 1
Value changes not firing in an angular unit test
I am trying to unit test my binding between to form inputs that is, voice phone number and sms phone number. The desired behaviour is that entering voice phone number should also populate the sms phon...
Ankur Aggarwal
Votes: 0
Answers: 1