@vitest/expect
Advanced tools
Comparing version 0.33.0 to 0.34.0
@@ -373,6 +373,10 @@ import { getColors, stringify, isObject, assertTypes } from '@vitest/utils'; | ||
function arrayBufferEquality(a, b) { | ||
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) | ||
return void 0; | ||
const dataViewA = new DataView(a); | ||
const dataViewB = new DataView(b); | ||
let dataViewA = a; | ||
let dataViewB = b; | ||
if (!(a instanceof DataView && b instanceof DataView)) { | ||
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) | ||
return void 0; | ||
dataViewA = new DataView(a); | ||
dataViewB = new DataView(b); | ||
} | ||
if (dataViewA.byteLength !== dataViewB.byteLength) | ||
@@ -379,0 +383,0 @@ return false; |
@@ -373,6 +373,10 @@ import { getColors, stringify, isObject, assertTypes } from '@vitest/utils'; | ||
function arrayBufferEquality(a, b) { | ||
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) | ||
return void 0; | ||
const dataViewA = new DataView(a); | ||
const dataViewB = new DataView(b); | ||
let dataViewA = a; | ||
let dataViewB = b; | ||
if (!(a instanceof DataView && b instanceof DataView)) { | ||
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) | ||
return void 0; | ||
dataViewA = new DataView(a); | ||
dataViewB = new DataView(b); | ||
} | ||
if (dataViewA.byteLength !== dataViewB.byteLength) | ||
@@ -379,0 +383,0 @@ return false; |
{ | ||
"name": "@vitest/expect", | ||
"type": "module", | ||
"version": "0.33.0", | ||
"version": "0.34.0", | ||
"description": "Jest's expect matchers as a Chai plugin", | ||
@@ -33,8 +33,8 @@ "license": "MIT", | ||
"chai": "^4.3.7", | ||
"@vitest/spy": "0.33.0", | ||
"@vitest/utils": "0.33.0" | ||
"@vitest/utils": "0.34.0", | ||
"@vitest/spy": "0.34.0" | ||
}, | ||
"devDependencies": { | ||
"picocolors": "^1.0.0", | ||
"@vitest/runner": "0.33.0" | ||
"@vitest/runner": "0.34.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "scripts": { |
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
104841
3032
+ Added@vitest/spy@0.34.0(transitive)
+ Added@vitest/utils@0.34.0(transitive)
- Removed@vitest/spy@0.33.0(transitive)
- Removed@vitest/utils@0.33.0(transitive)
Updated@vitest/spy@0.34.0
Updated@vitest/utils@0.34.0