diff --git a/README.md b/README.md index f4e9099..8a83a87 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/index.js b/index.js index 3d8d4af..a33c2ea 100644 --- a/index.js +++ b/index.js @@ -4,5 +4,6 @@ module.exports = { }, chai: require('chai'), assert: require('assert'), - Code: require('code') + Code: require('code'), + must: require('must') } diff --git a/package.json b/package.json index 5463bae..f88bb94 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ }, "homepage": "https://github.com/bcoe/assertassert#readme", "devDependencies": { + "coveralls": "^2.11.3", "mocha": "^2.2.5", "nyc": "^3.0.1", "standard": "^4.5.4" @@ -33,6 +34,7 @@ "dependencies": { "chai": "^3.2.0", "code": "^1.5.0", + "must": "^0.12.0", "should": "^7.0.2" } } diff --git a/test/assertassert-test.js b/test/assertassert-test.js index 8382615..88b07ab 100644 --- a/test/assertassert-test.js +++ b/test/assertassert-test.js @@ -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') }) @@ -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') })