@vitest/expect 0.33.0 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -370,10 +370,14 @@ function typeEquality(a, b) {
|
|
370
370
|
return false;
|
371
371
|
}
|
372
372
|
function arrayBufferEquality(a, b) {
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
373
|
+
let dataViewA = a;
|
374
|
+
let dataViewB = b;
|
375
|
+
if (!(a instanceof DataView && b instanceof DataView)) {
|
376
|
+
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
|
377
|
+
return void 0;
|
378
|
+
dataViewA = new DataView(a);
|
379
|
+
dataViewB = new DataView(b);
|
380
|
+
}
|
377
381
|
if (dataViewA.byteLength !== dataViewB.byteLength)
|
378
382
|
return false;
|
379
383
|
for (let i = 0; i < dataViewA.byteLength; i++) {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/expect",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.34.1",
|
5
5
|
"description": "Jest's expect matchers as a Chai plugin",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -30,12 +30,12 @@
|
|
30
30
|
],
|
31
31
|
"dependencies": {
|
32
32
|
"chai": "^4.3.7",
|
33
|
-
"@vitest/
|
34
|
-
"@vitest/
|
33
|
+
"@vitest/utils": "0.34.1",
|
34
|
+
"@vitest/spy": "0.34.1"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"picocolors": "^1.0.0",
|
38
|
-
"@vitest/runner": "0.
|
38
|
+
"@vitest/runner": "0.34.1"
|
39
39
|
},
|
40
40
|
"scripts": {
|
41
41
|
"build": "rimraf dist && rollup -c",
|