Permalink
Browse files

Spice up the main example

  • Loading branch information...
sunesimonsen committed Oct 10, 2017
1 parent a158d4e commit bd49685cdf5272e0d3e788824df788a01982d593
Showing with 18 additions and 6 deletions.
  1. +18 −6 documentation/index.md
View
@@ -9,17 +9,29 @@ repository: https://github.com/unexpectedjs/unexpected
# The extensible BDD assertion toolkit
```javascript
expect({ text: 'f00!' }, 'to equal', { text: 'foo!' });
const library = {
name: 'un3xp3c73d',
created: 2013,
site: 'http://unexpected.js.org',
}
expect(library, 'to satisfy', {
name: 'Unexpected',
created: 2013
})
```
```output
expected { text: 'f00!' } to equal { text: 'foo!' }
expected { name: 'un3xp3c73d', created: 2013, site: 'http://unexpected.js.org' }
to satisfy { name: 'Unexpected', created: 2013 }
{
text: 'f00!' // should equal 'foo!'
//
// -f00!
// +foo!
name: 'un3xp3c73d', // should equal 'Unexpected'
//
// -un3xp3c73d
// +Unexpected
created: 2013,
site: 'http://unexpected.js.org'
}
```

0 comments on commit bd49685

Please sign in to comment.