Skip to content

bcoe/assertassert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assertassert

Build Status Coverage Status NPM version js-standard-style

assertassert, for when you can't decide on an assertion library.

The API

assertassert's API combines the cutting edge in JavaScript TDD, BDD, and TBD assertion libraries allowing you to use the best features from each:

Code

assertassert.Code.expect({foo: 'bar'}).to.deep.equal({foo: 'bar'})

Chai

assertassert.chai.expect('foo').to.deep.equal('foo')

or override the default object prototype:

assertassert.chai.should()
"foo".should.deep.equal("foo")

Assert

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

Should

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

Must

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.

Contributing

Have I missed your pulling in your favorite assertion framework? found a bug? please open an issue.

License

ISC

About

:trollface: for when you can't decide on an assertion library

Resources

License

Stars

Watchers

Forks

Packages

No packages published