Skip to content

Commit

Permalink
Document 'to have text' assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Apr 29, 2015
1 parent 40a5d1b commit 42be445
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ expect(node, 'to [only] have attributes', {
});
```

**To have text**

Tests the text content of a DOM element

```js
expect(node, 'to have text', 'foo');
```

**To have children**

**Queried for**
Expand Down

0 comments on commit 42be445

Please sign in to comment.