Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chai-quantifiers

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-quantifiers - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

4

package.json
{
"name": "chai-quantifiers",
"version": "1.0.0-alpha.1",
"description": "quantifier assertions for chai",
"version": "1.0.0-alpha.2",
"description": "Array quantifier assertions for chai",
"main": "src/chai-quantifiers.js",

@@ -6,0 +6,0 @@ "repository": {

@@ -38,4 +38,4 @@ # chai-quantifiers

});
it('containOne should be true if one item is true', () => {
expect([0, 1, 2, 3]).to.containOne(item => item === 2);
it('containOne should be true if one or more items are true', () => {
expect([0, 1, 2, 3]).to.containOne(item => item >= 2);
});

@@ -42,0 +42,0 @@ it('containExactlyOne should be true if exactly one item is true', () => {

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