jasmine-core 6.0.1 → 6.1.0
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/README.md +1 -1
- package/lib/jasmine-core/jasmine.js +17 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Microsoft Edge) as well as Node.
|
|
|
30
30
|
| Environment | Supported versions |
|
|
31
31
|
|-------------------|----------------------------------|
|
|
32
32
|
| Node | 20, 22, 24 |
|
|
33
|
-
| Safari |
|
|
33
|
+
| Safari | 26* |
|
|
34
34
|
| Chrome | Evergreen |
|
|
35
35
|
| Firefox | Evergreen, 102*, 115*, 128*, 140 |
|
|
36
36
|
| Edge | Evergreen |
|
|
@@ -222,7 +222,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
222
222
|
* Maximum number of characters to display when pretty printing objects.
|
|
223
223
|
* Characters past this number will be ellipised.
|
|
224
224
|
* @name jasmine.MAX_PRETTY_PRINT_CHARS
|
|
225
|
-
* @default
|
|
225
|
+
* @default 1000
|
|
226
226
|
* @since 2.9.0
|
|
227
227
|
*/
|
|
228
228
|
j$.MAX_PRETTY_PRINT_CHARS = 1000;
|
|
@@ -4003,7 +4003,8 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
|
|
|
4003
4003
|
'lineNumber',
|
|
4004
4004
|
'column',
|
|
4005
4005
|
'description',
|
|
4006
|
-
'jasmineMessage'
|
|
4006
|
+
'jasmineMessage',
|
|
4007
|
+
'errors'
|
|
4007
4008
|
];
|
|
4008
4009
|
|
|
4009
4010
|
function ExceptionFormatter(options) {
|
|
@@ -4069,6 +4070,19 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
|
|
|
4069
4070
|
lines = lines.concat(substack);
|
|
4070
4071
|
}
|
|
4071
4072
|
|
|
4073
|
+
if (Array.isArray(error.errors)) {
|
|
4074
|
+
for (let i = 0; i < error.errors.length; i++) {
|
|
4075
|
+
if (error.errors[i] instanceof Error) {
|
|
4076
|
+
lines.push('');
|
|
4077
|
+
const substack = this.stack_(error.errors[i], {
|
|
4078
|
+
messageHandling: 'require'
|
|
4079
|
+
});
|
|
4080
|
+
substack[0] = 'Error ' + (i + 1) + ': ' + substack[0];
|
|
4081
|
+
lines = lines.concat(substack.map(x => ' ' + x));
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4072
4086
|
return lines;
|
|
4073
4087
|
};
|
|
4074
4088
|
|
|
@@ -12408,5 +12422,5 @@ getJasmineRequireObj().UserContext = function(j$) {
|
|
|
12408
12422
|
};
|
|
12409
12423
|
|
|
12410
12424
|
getJasmineRequireObj().version = function() {
|
|
12411
|
-
return '6.0
|
|
12425
|
+
return '6.1.0';
|
|
12412
12426
|
};
|