Skip to content

Commit

Permalink
Merge 4328744 into 8439b18
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jul 31, 2015
2 parents 8439b18 + 4328744 commit a91a513
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
10 changes: 8 additions & 2 deletions README.md
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
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
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
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

0 comments on commit a91a513

Please sign in to comment.