We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0086333 commit 65291c2Copy full SHA for 65291c2
README.md
@@ -31,11 +31,11 @@ class the {
31
it('[TextboxComponent] should clear the text of the input when the clear button is clicked', () => {
32
// host always refers to the component-under-test, so here it is the TextboxComponent:
33
When(host)
34
- .hasState({ text: 'some text' })
+ .has(state({ text: 'some text' }))
35
.and(the.ClearTextButton)
36
.gets(clicked())
37
.expect(host)
38
- .toHaveState({ text: '' });
+ .to(haveState({ text: '' }));
39
});
40
```
41
0 commit comments