Question · Angular course · Module 11: Testing
Updating a signal in a test
How do you read the current value of the count signal in a test assertion?
Answer options
- expect(count.value).toBe(5)
- expect(count()).toBe(5)
- expect(count.get()).toBe(5)
- expect(count).toBe(5)
You can check the correct answer by solving this task in the CodeWorlds game.