Skip to content

Commit 65291c2

Browse files
committed
fix: example
1 parent 0086333 commit 65291c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ class the {
3131
it('[TextboxComponent] should clear the text of the input when the clear button is clicked', () => {
3232
// host always refers to the component-under-test, so here it is the TextboxComponent:
3333
When(host)
34-
.hasState({ text: 'some text' })
34+
.has(state({ text: 'some text' }))
3535
.and(the.ClearTextButton)
3636
.gets(clicked())
3737
.expect(host)
38-
.toHaveState({ text: '' });
38+
.to(haveState({ text: '' }));
3939
});
4040
```
4141

0 commit comments

Comments
 (0)