Skip to content

Commit

Permalink
Merge branch '4.x.x' into 5-esm
Browse files Browse the repository at this point in the history
  • Loading branch information
James Garbutt committed Jan 19, 2023
2 parents 84abea1 + 3a8c49a commit bea9401
Show file tree
Hide file tree
Showing 10 changed files with 5,833 additions and 4,439 deletions.
2 changes: 1 addition & 1 deletion History.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Note

As of 3.0.0, the History.md file has been deprecated. [Please refer to the full
commit logs available on GitHub](https://github.com/chaijs/chai/commits/master).
commit logs available on GitHub](https://github.com/chaijs/chai/commits).

---

Expand Down
2,147 changes: 924 additions & 1,223 deletions chai.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import chai from './index.js';

export const expect = chai.expect;
export const version = chai.version;
export const Assertion = chai.Assertion;
export const AssertionError = chai.AssertionError;
export const util = chai.util;
export const config = chai.config;
Expand Down
2 changes: 1 addition & 1 deletion lib/chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var used = [];
* Chai version
*/

exports.version = '4.3.1';
exports.version = '4.3.3';

/*!
* Assertion Error
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3178,7 +3178,7 @@ module.exports = function (chai, _) {
} else {
if (isDeep) {
this.assert(
list.some(possibility => _.eql(expected, possibility))
list.some(function(possibility) { return _.eql(expected, possibility) })
, 'expected #{this} to deeply equal one of #{exp}'
, 'expected #{this} to deeply equal one of #{exp}'
, list
Expand Down
1 change: 1 addition & 0 deletions lib/chai/utils/objDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var config = require('../config');
* messages or should be truncated.
*
* @param {Mixed} javascript object to inspect
* @returns {string} stringified object
* @name objDisplay
* @namespace Utils
* @api public
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/utils/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var flag = require('./flag');
/**
* ### .test(object, expression)
*
* Test and object for expression.
* Test an object for expression.
*
* @param {Object} object (constructed Assertion)
* @param {Arguments} chai.Assertion.prototype.assert arguments
Expand Down
Loading

0 comments on commit bea9401

Please sign in to comment.