Socket
Socket
Sign inDemoInstall

chai-extras

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-extras

Additional utility Chai assertions


Version published
Weekly downloads
6
increased by20%
Maintainers
1
Weekly downloads
 
Created
Source

chai-extras

These are some additional chai plugins that I've found useful for basic javascript types

To install, just do npm install chai-extras

Assertions

atLeast

Assert that the subject is >= to the value provided

(versionNumber).should.be.atLeast(10.2)
expect(versionNumber).to.be.atLeast(10.2)

atMost

Assert that the subject is <= to the value provided

(paginatedEntries).should.be.atMost(entriesPerPage)
expect(paginatedEntries).to.be.atLeast(entriesPerPage)

Tests

  1. install dependencies with npm install
  2. open test/index.html

Keywords

FAQs

Package last updated on 12 Mar 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc