Socket
Socket
Sign inDemoInstall

assertassert

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    assertassert

assertassert, for when your company can't decide on a testing framework


Version published
Weekly downloads
2
Maintainers
1
Install size
1.15 MB
Created
Weekly downloads
 

Readme

Source

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")

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

Keywords

FAQs

Last updated on 31 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc