jasmine-core 5.1.2 → 5.2.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-html.js +5 -1
- package/lib/jasmine-core/jasmine.css +3 -0
- package/lib/jasmine-core/jasmine.js +157 -60
- package/package.json +1 -50
package/README.md
CHANGED
|
@@ -463,7 +463,11 @@ jasmineRequire.HtmlReporter = function(j$) {
|
|
|
463
463
|
'tr',
|
|
464
464
|
{},
|
|
465
465
|
createDom('td', {}, entry.timestamp.toString()),
|
|
466
|
-
createDom(
|
|
466
|
+
createDom(
|
|
467
|
+
'td',
|
|
468
|
+
{ className: 'jasmine-debug-log-msg' },
|
|
469
|
+
entry.message
|
|
470
|
+
)
|
|
467
471
|
)
|
|
468
472
|
);
|
|
469
473
|
});
|
|
@@ -295,4 +295,7 @@ body {
|
|
|
295
295
|
}
|
|
296
296
|
.jasmine_html-reporter .jasmine-debug-log table, .jasmine_html-reporter .jasmine-debug-log th, .jasmine_html-reporter .jasmine-debug-log td {
|
|
297
297
|
border: 1px solid #ddd;
|
|
298
|
+
}
|
|
299
|
+
.jasmine_html-reporter .jasmine-debug-log .jasmine-debug-log-msg {
|
|
300
|
+
white-space: pre;
|
|
298
301
|
}
|
|
@@ -400,9 +400,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
400
400
|
};
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
404
|
-
*
|
|
405
|
-
* @name
|
|
403
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
404
|
+
* value being compared is an instance of the specified class/constructor.
|
|
405
|
+
* @name asymmetricEqualityTesters.any
|
|
406
|
+
* @emittedName jasmine.any
|
|
406
407
|
* @since 1.3.0
|
|
407
408
|
* @function
|
|
408
409
|
* @param {Constructor} clazz - The constructor to check against.
|
|
@@ -412,9 +413,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
412
413
|
};
|
|
413
414
|
|
|
414
415
|
/**
|
|
415
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
416
|
-
*
|
|
417
|
-
* @name
|
|
416
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
417
|
+
* value being compared is not `null` and not `undefined`.
|
|
418
|
+
* @name asymmetricEqualityTesters.anything
|
|
419
|
+
* @emittedName jasmine.anything
|
|
418
420
|
* @since 2.2.0
|
|
419
421
|
* @function
|
|
420
422
|
*/
|
|
@@ -423,9 +425,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
423
425
|
};
|
|
424
426
|
|
|
425
427
|
/**
|
|
426
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
427
|
-
*
|
|
428
|
-
* @name
|
|
428
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
429
|
+
* value being compared is `true` or anything truthy.
|
|
430
|
+
* @name asymmetricEqualityTesters.truthy
|
|
431
|
+
* @emittedName jasmine.truthy
|
|
429
432
|
* @since 3.1.0
|
|
430
433
|
* @function
|
|
431
434
|
*/
|
|
@@ -434,9 +437,11 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
434
437
|
};
|
|
435
438
|
|
|
436
439
|
/**
|
|
437
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
441
|
+
* value being compared is `null`, `undefined`, `0`, `false` or anything
|
|
442
|
+
* falsy.
|
|
443
|
+
* @name asymmetricEqualityTesters.falsy
|
|
444
|
+
* @emittedName jasmine.falsy
|
|
440
445
|
* @since 3.1.0
|
|
441
446
|
* @function
|
|
442
447
|
*/
|
|
@@ -445,9 +450,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
445
450
|
};
|
|
446
451
|
|
|
447
452
|
/**
|
|
448
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
449
|
-
*
|
|
450
|
-
* @name
|
|
453
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
454
|
+
* value being compared is empty.
|
|
455
|
+
* @name asymmetricEqualityTesters.empty
|
|
456
|
+
* @emittedName jasmine.empty
|
|
451
457
|
* @since 3.1.0
|
|
452
458
|
* @function
|
|
453
459
|
*/
|
|
@@ -456,10 +462,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
456
462
|
};
|
|
457
463
|
|
|
458
464
|
/**
|
|
459
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
-
* @
|
|
465
|
+
* Get an {@link AsymmetricEqualityTester} that passes if the actual value is
|
|
466
|
+
* the same as the sample as determined by the `===` operator.
|
|
467
|
+
* @name asymmetricEqualityTesters.is
|
|
468
|
+
* @emittedName jasmine.is
|
|
463
469
|
* @function
|
|
464
470
|
* @param {Object} sample - The value to compare the actual to.
|
|
465
471
|
*/
|
|
@@ -468,9 +474,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
468
474
|
};
|
|
469
475
|
|
|
470
476
|
/**
|
|
471
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
472
|
-
*
|
|
473
|
-
* @name
|
|
477
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
478
|
+
* value being compared is not empty.
|
|
479
|
+
* @name asymmetricEqualityTesters.notEmpty
|
|
480
|
+
* @emittedName jasmine.notEmpty
|
|
474
481
|
* @since 3.1.0
|
|
475
482
|
* @function
|
|
476
483
|
*/
|
|
@@ -479,9 +486,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
479
486
|
};
|
|
480
487
|
|
|
481
488
|
/**
|
|
482
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
483
|
-
*
|
|
484
|
-
* @name
|
|
489
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
490
|
+
* value being compared contains at least the specified keys and values.
|
|
491
|
+
* @name asymmetricEqualityTesters.objectContaining
|
|
492
|
+
* @emittedName jasmine.objectContaining
|
|
485
493
|
* @since 1.3.0
|
|
486
494
|
* @function
|
|
487
495
|
* @param {Object} sample - The subset of properties that _must_ be in the actual.
|
|
@@ -491,9 +499,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
491
499
|
};
|
|
492
500
|
|
|
493
501
|
/**
|
|
494
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
495
|
-
*
|
|
496
|
-
* @name
|
|
502
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
503
|
+
* value is a `String` that matches the `RegExp` or `String`.
|
|
504
|
+
* @name asymmetricEqualityTesters.stringMatching
|
|
505
|
+
* @emittedName jasmine.stringMatching
|
|
497
506
|
* @since 2.2.0
|
|
498
507
|
* @function
|
|
499
508
|
* @param {RegExp|String} expected
|
|
@@ -503,9 +512,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
503
512
|
};
|
|
504
513
|
|
|
505
514
|
/**
|
|
506
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
507
|
-
*
|
|
508
|
-
* @name
|
|
515
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
516
|
+
* value is a `String` that contains the specified `String`.
|
|
517
|
+
* @name asymmetricEqualityTesters.stringContaining
|
|
518
|
+
* @emittedName jasmine.stringContaining
|
|
509
519
|
* @since 3.10.0
|
|
510
520
|
* @function
|
|
511
521
|
* @param {String} expected
|
|
@@ -515,9 +525,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
515
525
|
};
|
|
516
526
|
|
|
517
527
|
/**
|
|
518
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
519
|
-
*
|
|
520
|
-
* @name
|
|
528
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
529
|
+
* value is an `Array` that contains at least the elements in the sample.
|
|
530
|
+
* @name asymmetricEqualityTesters.arrayContaining
|
|
531
|
+
* @emittedName jasmine.arrayContaining
|
|
521
532
|
* @since 2.2.0
|
|
522
533
|
* @function
|
|
523
534
|
* @param {Array} sample
|
|
@@ -527,9 +538,11 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
527
538
|
};
|
|
528
539
|
|
|
529
540
|
/**
|
|
530
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
531
|
-
*
|
|
532
|
-
*
|
|
541
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if the actual
|
|
542
|
+
* value is an `Array` that contains all of the elements in the sample in
|
|
543
|
+
* any order.
|
|
544
|
+
* @name asymmetricEqualityTesters.arrayWithExactContents
|
|
545
|
+
* @emittedName jasmine.arrayWithExactContents
|
|
533
546
|
* @since 2.8.0
|
|
534
547
|
* @function
|
|
535
548
|
* @param {Array} sample
|
|
@@ -539,10 +552,11 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
539
552
|
};
|
|
540
553
|
|
|
541
554
|
/**
|
|
542
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
543
|
-
*
|
|
555
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if every
|
|
556
|
+
* key/value pair in the sample passes the deep equality comparison
|
|
544
557
|
* with at least one key/value pair in the actual value being compared
|
|
545
|
-
* @name
|
|
558
|
+
* @name asymmetricEqualityTesters.mapContaining
|
|
559
|
+
* @emittedName jasmine.mapContaining
|
|
546
560
|
* @since 3.5.0
|
|
547
561
|
* @function
|
|
548
562
|
* @param {Map} sample - The subset of items that _must_ be in the actual.
|
|
@@ -552,10 +566,11 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
552
566
|
};
|
|
553
567
|
|
|
554
568
|
/**
|
|
555
|
-
* Get an {@link AsymmetricEqualityTester}
|
|
556
|
-
*
|
|
569
|
+
* Get an {@link AsymmetricEqualityTester} that will succeed if every item
|
|
570
|
+
* in the sample passes the deep equality comparison
|
|
557
571
|
* with at least one item in the actual value being compared
|
|
558
|
-
* @name
|
|
572
|
+
* @name asymmetricEqualityTesters.setContaining
|
|
573
|
+
* @emittedName jasmine.setContaining
|
|
559
574
|
* @since 3.5.0
|
|
560
575
|
* @function
|
|
561
576
|
* @param {Set} sample - The subset of items that _must_ be in the actual.
|
|
@@ -611,14 +626,26 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
|
|
611
626
|
* handling will be restored when the promise returned from the callback is
|
|
612
627
|
* settled.
|
|
613
628
|
*
|
|
629
|
+
* When the JavaScript runtime reports an uncaught error or unhandled rejection,
|
|
630
|
+
* the spy will be called with a single parameter representing Jasmine's best
|
|
631
|
+
* effort at describing the error. This parameter may be of any type, because
|
|
632
|
+
* JavaScript allows anything to be thrown or used as the reason for a
|
|
633
|
+
* rejected promise, but Error instances and strings are most common.
|
|
634
|
+
*
|
|
614
635
|
* Note: The JavaScript runtime may deliver uncaught error events and unhandled
|
|
615
636
|
* rejection events asynchronously, especially in browsers. If the event
|
|
616
637
|
* occurs after the promise returned from the callback is settled, it won't
|
|
617
638
|
* be routed to the spy even if the underlying error occurred previously.
|
|
618
|
-
* It's up to you to ensure that the
|
|
619
|
-
*
|
|
639
|
+
* It's up to you to ensure that all of the error/rejection events that you
|
|
640
|
+
* want to handle have occurred before you resolve the promise returned from
|
|
641
|
+
* the callback.
|
|
620
642
|
*
|
|
621
|
-
* You must
|
|
643
|
+
* You must ensure that the `it`/`beforeEach`/etc fn that called
|
|
644
|
+
* `spyOnGlobalErrorsAsync` does not signal completion until after the
|
|
645
|
+
* promise returned by `spyOnGlobalErrorsAsync` is resolved. Normally this is
|
|
646
|
+
* done by `await`ing the returned promise. Leaving the global error spy
|
|
647
|
+
* installed after the `it`/`beforeEach`/etc fn that installed it signals
|
|
648
|
+
* completion is likely to cause problems and is not supported.
|
|
622
649
|
* @name jasmine.spyOnGlobalErrorsAsync
|
|
623
650
|
* @function
|
|
624
651
|
* @async
|
|
@@ -3655,19 +3682,24 @@ getJasmineRequireObj().Expectation = function(j$) {
|
|
|
3655
3682
|
}
|
|
3656
3683
|
|
|
3657
3684
|
/**
|
|
3658
|
-
* Add some context for an
|
|
3685
|
+
* Add some context to be included in matcher failures for an
|
|
3686
|
+
* {@link expect|expectation}, so that it can be more easily distinguished
|
|
3687
|
+
* from similar expectations.
|
|
3659
3688
|
* @function
|
|
3660
3689
|
* @name matchers#withContext
|
|
3661
3690
|
* @since 3.3.0
|
|
3662
3691
|
* @param {String} message - Additional context to show when the matcher fails
|
|
3663
3692
|
* @return {matchers}
|
|
3693
|
+
* @example
|
|
3694
|
+
* expect(things[0]).withContext('thing 0').toEqual('a');
|
|
3695
|
+
* expect(things[1]).withContext('thing 1').toEqual('b');
|
|
3664
3696
|
*/
|
|
3665
3697
|
Expectation.prototype.withContext = function withContext(message) {
|
|
3666
3698
|
return addFilter(this, new ContextAddingFilter(message));
|
|
3667
3699
|
};
|
|
3668
3700
|
|
|
3669
3701
|
/**
|
|
3670
|
-
* Invert the matcher following this {@link expect}
|
|
3702
|
+
* Invert the matcher following this {@link expect|expectation}
|
|
3671
3703
|
* @member
|
|
3672
3704
|
* @name matchers#not
|
|
3673
3705
|
* @since 1.3.0
|
|
@@ -4070,6 +4102,7 @@ getJasmineRequireObj().GlobalErrors = function(j$) {
|
|
|
4070
4102
|
|
|
4071
4103
|
function dispatchBrowserError(error, event) {
|
|
4072
4104
|
if (overrideHandler) {
|
|
4105
|
+
// See discussion of spyOnGlobalErrorsAsync in base.js
|
|
4073
4106
|
overrideHandler(error);
|
|
4074
4107
|
return;
|
|
4075
4108
|
}
|
|
@@ -4113,6 +4146,7 @@ getJasmineRequireObj().GlobalErrors = function(j$) {
|
|
|
4113
4146
|
const handler = handlers[handlers.length - 1];
|
|
4114
4147
|
|
|
4115
4148
|
if (overrideHandler) {
|
|
4149
|
+
// See discussion of spyOnGlobalErrorsAsync in base.js
|
|
4116
4150
|
overrideHandler(error);
|
|
4117
4151
|
return;
|
|
4118
4152
|
}
|
|
@@ -6524,7 +6558,7 @@ getJasmineRequireObj().toHaveSize = function(j$) {
|
|
|
6524
6558
|
* array = [1,2];
|
|
6525
6559
|
* expect(array).toHaveSize(2);
|
|
6526
6560
|
*/
|
|
6527
|
-
function toHaveSize() {
|
|
6561
|
+
function toHaveSize(matchersUtil) {
|
|
6528
6562
|
return {
|
|
6529
6563
|
compare: function(actual, expected) {
|
|
6530
6564
|
const result = {
|
|
@@ -6539,12 +6573,29 @@ getJasmineRequireObj().toHaveSize = function(j$) {
|
|
|
6539
6573
|
throw new Error('Cannot get size of ' + actual + '.');
|
|
6540
6574
|
}
|
|
6541
6575
|
|
|
6576
|
+
let actualSize;
|
|
6542
6577
|
if (j$.isSet(actual) || j$.isMap(actual)) {
|
|
6543
|
-
|
|
6578
|
+
actualSize = actual.size;
|
|
6544
6579
|
} else if (isLength(actual.length)) {
|
|
6545
|
-
|
|
6580
|
+
actualSize = actual.length;
|
|
6546
6581
|
} else {
|
|
6547
|
-
|
|
6582
|
+
actualSize = Object.keys(actual).length;
|
|
6583
|
+
}
|
|
6584
|
+
|
|
6585
|
+
result.pass = actualSize === expected;
|
|
6586
|
+
|
|
6587
|
+
if (!result.pass) {
|
|
6588
|
+
result.message = function() {
|
|
6589
|
+
return (
|
|
6590
|
+
'Expected ' +
|
|
6591
|
+
matchersUtil.pp(actual) +
|
|
6592
|
+
' with size ' +
|
|
6593
|
+
actualSize +
|
|
6594
|
+
' to have size ' +
|
|
6595
|
+
expected +
|
|
6596
|
+
'.'
|
|
6597
|
+
);
|
|
6598
|
+
};
|
|
6548
6599
|
}
|
|
6549
6600
|
|
|
6550
6601
|
return result;
|
|
@@ -7684,8 +7735,8 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
|
|
7684
7735
|
}
|
|
7685
7736
|
|
|
7686
7737
|
QueueRunner.prototype.execute = function() {
|
|
7687
|
-
this.handleFinalError = error => {
|
|
7688
|
-
this.onException(error);
|
|
7738
|
+
this.handleFinalError = (error, event) => {
|
|
7739
|
+
this.onException(errorOrMsgForGlobalError(error, event));
|
|
7689
7740
|
};
|
|
7690
7741
|
this.globalErrors.pushListener(this.handleFinalError);
|
|
7691
7742
|
this.run(0);
|
|
@@ -7715,10 +7766,8 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
|
|
7715
7766
|
this.recordError_(iterativeIndex);
|
|
7716
7767
|
};
|
|
7717
7768
|
|
|
7718
|
-
function handleError(error) {
|
|
7719
|
-
|
|
7720
|
-
// That makes debugging async failures much more confusing.
|
|
7721
|
-
onException(error);
|
|
7769
|
+
function handleError(error, event) {
|
|
7770
|
+
onException(errorOrMsgForGlobalError(error, event));
|
|
7722
7771
|
}
|
|
7723
7772
|
const cleanup = once(() => {
|
|
7724
7773
|
if (timeoutId !== void 0) {
|
|
@@ -7904,6 +7953,17 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
|
|
7904
7953
|
};
|
|
7905
7954
|
}
|
|
7906
7955
|
|
|
7956
|
+
function errorOrMsgForGlobalError(error, event) {
|
|
7957
|
+
// TODO: In cases where error is a string or undefined, the error message
|
|
7958
|
+
// that gets sent to reporters will be `${message} thrown`, which could
|
|
7959
|
+
// be improved to not say "thrown" when the cause wasn't necessarily
|
|
7960
|
+
// an exception or to provide hints about throwing Errors rather than
|
|
7961
|
+
// strings.
|
|
7962
|
+
return (
|
|
7963
|
+
error || (event && event.message) || 'Global error event with no message'
|
|
7964
|
+
);
|
|
7965
|
+
}
|
|
7966
|
+
|
|
7907
7967
|
return QueueRunner;
|
|
7908
7968
|
};
|
|
7909
7969
|
|
|
@@ -8408,6 +8468,12 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
8408
8468
|
}),
|
|
8409
8469
|
|
|
8410
8470
|
/**
|
|
8471
|
+
* <p>Members of the jasmine global.</p>
|
|
8472
|
+
* <p>Note: The members of the
|
|
8473
|
+
* {@link asymmetricEqualityTesters|asymmetricEqualityTesters namespace}
|
|
8474
|
+
* are also accessed via the jasmine global, but due to jsdoc limitations
|
|
8475
|
+
* they are not listed here.</p>
|
|
8476
|
+
*
|
|
8411
8477
|
* @namespace jasmine
|
|
8412
8478
|
*/
|
|
8413
8479
|
jasmine: jasmine
|
|
@@ -8541,6 +8607,28 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|
|
8541
8607
|
return env.setDefaultSpyStrategy(defaultStrategyFn);
|
|
8542
8608
|
};
|
|
8543
8609
|
|
|
8610
|
+
/**
|
|
8611
|
+
* {@link AsymmetricEqualityTester|Asymmetric equality testers} allow for
|
|
8612
|
+
* non-exact matching in matchers that use Jasmine's deep value equality
|
|
8613
|
+
* semantics, such as {@link matchers#toEqual|toEqual},
|
|
8614
|
+
* {@link matchers#toContain|toContain}, and
|
|
8615
|
+
* {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}.
|
|
8616
|
+
*
|
|
8617
|
+
* @example
|
|
8618
|
+
* const someComplexObject = {
|
|
8619
|
+
* foo: 'bar',
|
|
8620
|
+
* baz: 'a string that contains "something"',
|
|
8621
|
+
* qux: 'whatever'
|
|
8622
|
+
* };
|
|
8623
|
+
* // Passes.
|
|
8624
|
+
* expect(someComplexObject).toEqual(jasmine.objectContaining({
|
|
8625
|
+
* foo: 'bar',
|
|
8626
|
+
* baz: jasmine.stringContaining('something')
|
|
8627
|
+
* });
|
|
8628
|
+
*
|
|
8629
|
+
* @namespace asymmetricEqualityTesters
|
|
8630
|
+
*/
|
|
8631
|
+
|
|
8544
8632
|
return jasmineInterface;
|
|
8545
8633
|
};
|
|
8546
8634
|
|
|
@@ -9746,7 +9834,7 @@ getJasmineRequireObj().StackTrace = function(j$) {
|
|
|
9746
9834
|
// e.g. " at /some/path:4320:20
|
|
9747
9835
|
{ re: /\s*at (.+)$/, fileLineColIx: 1, style: 'v8' },
|
|
9748
9836
|
|
|
9749
|
-
//
|
|
9837
|
+
// Safari, most Firefox stack frames
|
|
9750
9838
|
// e.g. "run@http://localhost:8888/__jasmine__/jasmine.js:4320:27"
|
|
9751
9839
|
// or "http://localhost:8888/__jasmine__/jasmine.js:4320:27"
|
|
9752
9840
|
{
|
|
@@ -9754,6 +9842,15 @@ getJasmineRequireObj().StackTrace = function(j$) {
|
|
|
9754
9842
|
fnIx: 2,
|
|
9755
9843
|
fileLineColIx: 3,
|
|
9756
9844
|
style: 'webkit'
|
|
9845
|
+
},
|
|
9846
|
+
|
|
9847
|
+
// Some Firefox stack frames when the developer tools are open
|
|
9848
|
+
// e.g. "promise callback*specStarted@http://localhost:8888/__jasmine__/jasmine.js:1880:41"
|
|
9849
|
+
{
|
|
9850
|
+
re: /^^(?:((?:promise callback|[^\s]+ handler)\*([^@\s]+)@)|@)?([^\s]+)$/,
|
|
9851
|
+
fnIx: 2,
|
|
9852
|
+
fileLineColIx: 3,
|
|
9853
|
+
style: 'webkit'
|
|
9757
9854
|
}
|
|
9758
9855
|
];
|
|
9759
9856
|
|
|
@@ -10813,5 +10910,5 @@ getJasmineRequireObj().UserContext = function(j$) {
|
|
|
10813
10910
|
};
|
|
10814
10911
|
|
|
10815
10912
|
getJasmineRequireObj().version = function() {
|
|
10816
|
-
return '5.
|
|
10913
|
+
return '5.2.0';
|
|
10817
10914
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jasmine-core",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/jasmine/jasmine.git"
|
|
@@ -52,55 +52,6 @@
|
|
|
52
52
|
"shelljs": "^0.8.3",
|
|
53
53
|
"temp": "^0.9.0"
|
|
54
54
|
},
|
|
55
|
-
"prettier": {
|
|
56
|
-
"singleQuote": true
|
|
57
|
-
},
|
|
58
|
-
"eslintConfig": {
|
|
59
|
-
"extends": [
|
|
60
|
-
"plugin:compat/recommended"
|
|
61
|
-
],
|
|
62
|
-
"env": {
|
|
63
|
-
"browser": true,
|
|
64
|
-
"node": true,
|
|
65
|
-
"es2017": true
|
|
66
|
-
},
|
|
67
|
-
"parserOptions": {
|
|
68
|
-
"ecmaVersion": 2018
|
|
69
|
-
},
|
|
70
|
-
"rules": {
|
|
71
|
-
"quotes": [
|
|
72
|
-
"error",
|
|
73
|
-
"single",
|
|
74
|
-
{
|
|
75
|
-
"avoidEscape": true
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"no-unused-vars": [
|
|
79
|
-
"error",
|
|
80
|
-
{
|
|
81
|
-
"args": "none"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"no-implicit-globals": "error",
|
|
85
|
-
"block-spacing": "error",
|
|
86
|
-
"func-call-spacing": [
|
|
87
|
-
"error",
|
|
88
|
-
"never"
|
|
89
|
-
],
|
|
90
|
-
"key-spacing": "error",
|
|
91
|
-
"no-tabs": "error",
|
|
92
|
-
"no-trailing-spaces": "error",
|
|
93
|
-
"no-whitespace-before-property": "error",
|
|
94
|
-
"semi": [
|
|
95
|
-
"error",
|
|
96
|
-
"always"
|
|
97
|
-
],
|
|
98
|
-
"space-before-blocks": "error",
|
|
99
|
-
"no-eval": "error",
|
|
100
|
-
"no-var": "error",
|
|
101
|
-
"no-debugger": "error"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
55
|
"browserslist": [
|
|
105
56
|
"Safari >= 15",
|
|
106
57
|
"Firefox >= 102",
|