Skip to content

Commit

Permalink
Added docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 23, 2015
1 parent 2b4470a commit eea3035
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ expect(node, 'to [only] have attributes', {

**Queried for**

**When parsed as HTML**

Parses the subject (string) as an HTML document using the facilities available in the browser, with a fallback to jsdom, then delegates to the next assertion in the argument list:

```js
expect(
'<html><body><div class="foo"></div></body></html>',
'when parsed as HTML',
'queried for', 'div',
'to have attributes', { class: 'foo' }
);
```


License
-------
Expand Down

0 comments on commit eea3035

Please sign in to comment.