@vitest/expect 0.27.0 → 0.27.2
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 +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -994,7 +994,7 @@ Number of calls: ${c.bold(spy.mock.calls.length)}
|
|
994
994
|
]
|
995
995
|
);
|
996
996
|
if (called && isNot)
|
997
|
-
msg
|
997
|
+
msg = formatCalls(spy, msg);
|
998
998
|
if (called && isNot || !called && !isNot) {
|
999
999
|
const err = new Error(msg);
|
1000
1000
|
err.name = "AssertionError";
|
@@ -1016,7 +1016,7 @@ Number of calls: ${c.bold(spy.mock.calls.length)}
|
|
1016
1016
|
]
|
1017
1017
|
);
|
1018
1018
|
if (pass && isNot || !pass && !isNot) {
|
1019
|
-
msg
|
1019
|
+
msg = formatCalls(spy, msg, args);
|
1020
1020
|
const err = new Error(msg);
|
1021
1021
|
err.name = "AssertionError";
|
1022
1022
|
throw err;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/expect",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.27.
|
4
|
+
"version": "0.27.2",
|
5
5
|
"description": "Jest's expect matchers as a Chai plugin",
|
6
6
|
"license": "MIT",
|
7
7
|
"repository": {
|
@@ -26,8 +26,8 @@
|
|
26
26
|
"dependencies": {
|
27
27
|
"chai": "^4.3.7",
|
28
28
|
"picocolors": "^1.0.0",
|
29
|
-
"@vitest/utils": "0.27.
|
30
|
-
"@vitest/spy": "0.27.
|
29
|
+
"@vitest/utils": "0.27.2",
|
30
|
+
"@vitest/spy": "0.27.2"
|
31
31
|
},
|
32
32
|
"scripts": {
|
33
33
|
"build": "rimraf dist && rollup -c",
|