unexpected-set
Version:
Add support to Unexpected for testing Set instances
29 lines (23 loc) • 996 B
Markdown
template: default.ejs
theme: dark
title: Unexpected-set
repository: https://github.com/unexpectedjs/unexpected-set
Add support to [Unexpected](http://unexpected.js.org) for testing [Set](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Set) instances.
[](http://badge.fury.io/js/unexpected-set)
[](https://travis-ci.org/unexpectedjs/unexpected-set)
[](https://coveralls.io/r/unexpectedjs/unexpected-set)
[](https://david-dm.org/unexpectedjs/unexpected-set)
```js
expect(new Set([1, 2, 3]), 'to satisfy', new Set([1, 2, 3, 4]));
```
```output
expected new Set([ 1, 2, 3 ]) to satisfy new Set([ 1, 2, 3, 4 ])
new Set([
1,
2,
3
// missing 4
])
```