@sprucelabs/test-utils 5.1.533 → 5.1.535
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/build/assert/assert.js
CHANGED
|
@@ -38,12 +38,12 @@ const assert = {
|
|
|
38
38
|
},
|
|
39
39
|
isEqual(actual, expected, message) {
|
|
40
40
|
if (actual !== expected) {
|
|
41
|
-
this.fail(buildErrorMessage(`${stringify(actual)} does not equal ${stringify(expected)}`, message));
|
|
41
|
+
this.fail(buildErrorMessage(`${stringify(actual)}\n\n does not equal \n\n${stringify(expected)}`, message));
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
isNotEqual(actual, expected, message) {
|
|
45
45
|
if (actual === expected) {
|
|
46
|
-
this.fail(buildErrorMessage(`${stringify(actual)} should not equal ${stringify(expected)}`, message));
|
|
46
|
+
this.fail(buildErrorMessage(`${stringify(actual)}\n\n should not equal ${stringify(expected)}\n\n`, message));
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
isEqualDeep(actual, expected, message, shouldAppendDelta = true) {
|
|
@@ -50,7 +50,7 @@ const assertUtil = {
|
|
|
50
50
|
stringified.substr(stringified.length - 1000);
|
|
51
51
|
}
|
|
52
52
|
stringified = assertUtil.replacePlaceholders(stringified);
|
|
53
|
-
return
|
|
53
|
+
return `${chalk_1.default.bold(stringified)}`;
|
|
54
54
|
},
|
|
55
55
|
replacePlaceholders(str) {
|
|
56
56
|
return str
|
|
@@ -19,12 +19,12 @@ const assert = {
|
|
|
19
19
|
},
|
|
20
20
|
isEqual(actual, expected, message) {
|
|
21
21
|
if (actual !== expected) {
|
|
22
|
-
this.fail(buildErrorMessage(`${stringify(actual)} does not equal ${stringify(expected)}`, message));
|
|
22
|
+
this.fail(buildErrorMessage(`${stringify(actual)}\n\n does not equal \n\n${stringify(expected)}`, message));
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
isNotEqual(actual, expected, message) {
|
|
26
26
|
if (actual === expected) {
|
|
27
|
-
this.fail(buildErrorMessage(`${stringify(actual)} should not equal ${stringify(expected)}`, message));
|
|
27
|
+
this.fail(buildErrorMessage(`${stringify(actual)}\n\n should not equal ${stringify(expected)}\n\n`, message));
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
isEqualDeep(actual, expected, message, shouldAppendDelta = true) {
|
|
@@ -45,7 +45,7 @@ const assertUtil = {
|
|
|
45
45
|
stringified.substr(stringified.length - 1000);
|
|
46
46
|
}
|
|
47
47
|
stringified = assertUtil.replacePlaceholders(stringified);
|
|
48
|
-
return
|
|
48
|
+
return `${chalk.bold(stringified)}`;
|
|
49
49
|
},
|
|
50
50
|
replacePlaceholders(str) {
|
|
51
51
|
return str
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "5.1.
|
|
6
|
+
"version": "5.1.535",
|
|
7
7
|
"files": [
|
|
8
8
|
"build"
|
|
9
9
|
],
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"watch.tsc": "tsc -w"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@sprucelabs/error": "^6.0.
|
|
63
|
+
"@sprucelabs/error": "^6.0.558",
|
|
64
64
|
"deep-equal": "^2.2.3",
|
|
65
65
|
"just-clone": "^6.2.0",
|
|
66
66
|
"lodash": "^4.17.21",
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
"variable-diff": "^2.0.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@sprucelabs/esm-postbuild": "^6.0.
|
|
72
|
-
"@sprucelabs/jest-json-reporter": "^8.0.
|
|
71
|
+
"@sprucelabs/esm-postbuild": "^6.0.535",
|
|
72
|
+
"@sprucelabs/jest-json-reporter": "^8.0.560",
|
|
73
73
|
"@sprucelabs/jest-sheets-reporter": "^2.0.20",
|
|
74
74
|
"@sprucelabs/semantic-release": "^5.0.2",
|
|
75
|
-
"@sprucelabs/test": "^9.0.
|
|
75
|
+
"@sprucelabs/test": "^9.0.65",
|
|
76
76
|
"@types/deep-equal": "^1.0.4",
|
|
77
77
|
"@types/jest": "^29.5.14",
|
|
78
|
-
"@types/lodash": "^4.17.
|
|
79
|
-
"@types/node": "^22.10.
|
|
78
|
+
"@types/lodash": "^4.17.14",
|
|
79
|
+
"@types/node": "^22.10.5",
|
|
80
80
|
"chokidar-cli": "^3.0.0",
|
|
81
81
|
"eslint": "^9.17.0",
|
|
82
82
|
"eslint-config-spruce": "^11.2.26",
|