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.7 to 1.0.8

14

package.json
{
"name": "chai-quantifiers",
"version": "1.0.7",
"version": "1.0.8",
"description": "Array quantifier assertions for chai assertion library",

@@ -35,10 +35,10 @@ "main": "src/chai-quantifiers.js",

"chai": "^4.2.0",
"coveralls": "^3.0.4",
"eslint": "^6.0.1",
"eslint-config-airbnb-base": "^13.2.0",
"eslint-plugin-import": "^2.18.0",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-should-promised": "^2.0.0",
"mocha": "^6.1.4",
"nyc": "^14.1.1"
"mocha": "^7.0.0",
"nyc": "^15.0.0"
},

@@ -45,0 +45,0 @@ "peerDependencies": {

@@ -11,7 +11,7 @@ const chai = require('chai');

it('should be true if all items are true', () => {
expect([0, 1, 2, 3]).to.containAll(item => item < 4);
expect([0, 1, 2, 3]).to.containAll((item) => item < 4);
});
it('should be false if one item is false', () => {
expect([0, 1, 2, 3]).to.not.containAll(item => item >= 3);
expect([0, 1, 2, 3]).to.not.containAll((item) => item >= 3);
});

@@ -22,11 +22,11 @@ });

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

@@ -37,13 +37,13 @@ });

it('should be true if one item is true', () => {
expect([0, 1, 2, 3]).to.containExactlyOne(item => item === 2);
expect([0, 1, 2, 3]).to.containExactlyOne((item) => item === 2);
});
it('should be false if two items are true', () => {
expect([0, 1, 2, 3]).to.not.containExactlyOne(item => item >= 2);
expect([0, 1, 2, 3]).to.not.containExactlyOne((item) => item >= 2);
});
it('should be false if no item is true', () => {
expect([0, 1, 2, 3]).to.not.containExactlyOne(item => item > 3);
expect([0, 1, 2, 3]).to.not.containExactlyOne((item) => item > 3);
});
});
});
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