@sinonjs/referee
Advanced tools
Comparing version 8.0.0 to 8.0.1
# Changes | ||
## 8.0.1 | ||
- [`06aeae4`](https://github.com/sinonjs/referee/commit/06aeae4d7cd45899dd44093704fd71bd9cbba5f9) | ||
Bump y18n from 4.0.0 to 4.0.1 (dependabot[bot]) | ||
> | ||
> Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. | ||
> - [Release notes](https://github.com/yargs/y18n/releases) | ||
> - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md) | ||
> - [Commits](https://github.com/yargs/y18n/commits) | ||
> | ||
> Signed-off-by: dependabot[bot] <support@github.com> | ||
_Released on 2021-04-08._ | ||
## 8.0.0 | ||
@@ -4,0 +18,0 @@ |
"use strict"; | ||
var includes = require("lodash.includes"); | ||
var noClassNameMessage = | ||
@@ -19,3 +17,3 @@ "${customMessage}Expected object to have className property"; | ||
for (i = 0, l = expected.length; i < l; i++) { | ||
if (!includes(actual, expected[i])) { | ||
if (!actual.includes(expected[i])) { | ||
return false; | ||
@@ -22,0 +20,0 @@ } |
"use strict"; | ||
var includes = require("lodash.includes"); | ||
var actualAndExpectedMessageValues = require("../actual-and-expected-message-values"); | ||
@@ -9,3 +8,3 @@ | ||
assert: function (haystack, needle) { | ||
return includes(haystack, needle); | ||
return haystack.includes(needle); | ||
}, | ||
@@ -12,0 +11,0 @@ assertMessage: "${customMessage}Expected ${actual} to contain ${expected}", |
"use strict"; | ||
var objectAssign = require("object-assign"); | ||
var arrayFrom = require("array-from"); | ||
function expect(actual) { | ||
var expectation = objectAssign(Object.create(expect.expectation), { | ||
var expectation = Object.assign(Object.create(expect.expectation), { | ||
actual: actual, | ||
@@ -12,3 +9,3 @@ assertMode: true, | ||
expectation.not = objectAssign(Object.create(expectation), { | ||
expectation.not = Object.assign(Object.create(expectation), { | ||
assertMode: false, | ||
@@ -24,3 +21,3 @@ }); | ||
expect.expectation[expectation] = function () { | ||
var args = [this.actual].concat(arrayFrom(arguments)); | ||
var args = [this.actual].concat(Array.from(arguments)); | ||
var type = this.assertMode ? "assert" : "refute"; | ||
@@ -27,0 +24,0 @@ var callFunc; |
{ | ||
"name": "@sinonjs/referee", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "Assertions for any JavaScript test framework and environment", | ||
@@ -13,3 +13,3 @@ "author": "Christian Johansen", | ||
"scripts": { | ||
"build": "run-s build:dist-folder build:bundle", | ||
"build": "npm run build:dist-folder && npm run build:bundle", | ||
"build:bundle": "esbuild lib/referee.js --bundle --outfile=dist/referee.js", | ||
@@ -37,7 +37,4 @@ "build:dist-folder": "mkdirp dist", | ||
"@sinonjs/samsam": "^5.0.2", | ||
"array-from": "2.1.1", | ||
"event-emitter": "^0.3.5", | ||
"lodash.includes": "^4.3.0", | ||
"lodash.isarguments": "^3.1.0", | ||
"object-assign": "^4.1.1", | ||
"util": "^0.12.3" | ||
@@ -70,3 +67,2 @@ }, | ||
"mocha": "^7.0.1", | ||
"npm-run-all": "^4.1.3", | ||
"nyc": "^15.0.0", | ||
@@ -73,0 +69,0 @@ "prettier": "^2.1.2", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
11
321122
6767
- Removedarray-from@2.1.1
- Removedlodash.includes@^4.3.0
- Removedobject-assign@^4.1.1
- Removedarray-from@2.1.1(transitive)
- Removedlodash.includes@4.3.0(transitive)
- Removedobject-assign@4.1.1(transitive)