Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,25 @@ assertassert.chai.should()
"foo".should.deep.equal("foo")
```

### assert
### Assert

```js
assertassert.assert.deepEqual('foo', 'foo', 'assert library not found')
```

### should
### Should

```js
assertassert.should()
"foo".should.deep.equal("foo")
```

### Must

```js
assertassert.must('foo').to.be('string')
```

That's all there is to it. assertassert is guranteed to be the last
assertion library you'll ever need.

Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ module.exports = {
},
chai: require('chai'),
assert: require('assert'),
Code: require('code')
Code: require('code'),
must: require('must')
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
},
"homepage": "https://github.com/bcoe/assertassert#readme",
"devDependencies": {
"coveralls": "^2.11.3",
"mocha": "^2.2.5",
"nyc": "^3.0.1",
"standard": "^4.5.4"
},
"dependencies": {
"chai": "^3.2.0",
"code": "^1.5.0",
"must": "^0.12.0",
"should": "^7.0.2"
}
}
10 changes: 7 additions & 3 deletions test/assertassert-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
var assertassert = require('../')

describe('assertassert', function () {
it('provides the code testing framework', function () {
it('provides the code assertion library', function () {
assertassert.Code.expect({foo: 'bar'}).to.deep.equal({foo: 'bar'})
})

it('provides the assert testing framework', function () {
it('provides the assert assertion library', function () {
assertassert.assert.deepEqual('foo', 'foo', 'assert library not found')
})

Expand All @@ -22,7 +22,11 @@ describe('assertassert', function () {
})
})

it('provides the should testing framework', function () {
it('provides the must assertion library', function () {
assertassert.must('foo').to.be('foo')
})

it('provides the should assertion library', function () {
assertassert.should()
'foo'.should.equal('foo')
})
Expand Down