Files
le-journal-d-un-podcast/node_modules/disposable-email-domains/test/helpers/lowercase.js
T
2023-05-10 21:03:22 -04:00

16 lines
418 B
JavaScript

/*
Check if all the elements are in lowercase
*/
module.exports = function (chai) {
chai.Assertion.addProperty('lowercase', function () {
var obj = this._obj, _this = this;
obj.forEach(function(o){
_this.assert(
o === o.toLowerCase()
, 'expected "' + o + '" to be all lowercase'
, 'expected "' + o + '" to not be all lowercase'
);
});
});
};