jasmine-core 6.2.0 → 6.3.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.
|
@@ -1049,7 +1049,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|
|
1049
1049
|
// Useful for fit, xit, where pending state remains.
|
|
1050
1050
|
exclude(message) {
|
|
1051
1051
|
this.markedExcluding = true;
|
|
1052
|
-
if (
|
|
1052
|
+
if (message) {
|
|
1053
1053
|
this.excludeMessage = message;
|
|
1054
1054
|
}
|
|
1055
1055
|
this.pend(message);
|
|
@@ -11225,9 +11225,12 @@ getJasmineRequireObj().Suite = function(j$) {
|
|
|
11225
11225
|
|
|
11226
11226
|
// Like pend(), but pending state will survive reset().
|
|
11227
11227
|
// Useful for fdescribe, xdescribe, where pending state should remain.
|
|
11228
|
-
exclude() {
|
|
11228
|
+
exclude(message) {
|
|
11229
11229
|
this.pend();
|
|
11230
11230
|
this.markedExcluding = true;
|
|
11231
|
+
if (message) {
|
|
11232
|
+
this.excludeMessage = message;
|
|
11233
|
+
}
|
|
11231
11234
|
}
|
|
11232
11235
|
|
|
11233
11236
|
beforeEach(fn) {
|
|
@@ -11601,7 +11604,7 @@ getJasmineRequireObj().SuiteBuilder = function(j$) {
|
|
|
11601
11604
|
throw new Error('describe does not expect any arguments');
|
|
11602
11605
|
}
|
|
11603
11606
|
if (this.currentDeclarationSuite_.markedExcluding) {
|
|
11604
|
-
suite.exclude();
|
|
11607
|
+
suite.exclude(this.currentDeclarationSuite_.excludeMessage);
|
|
11605
11608
|
}
|
|
11606
11609
|
this.addSpecsToSuite_(suite, definitionFn);
|
|
11607
11610
|
return suite;
|
|
@@ -11622,7 +11625,7 @@ getJasmineRequireObj().SuiteBuilder = function(j$) {
|
|
|
11622
11625
|
xdescribe(description, definitionFn, filename) {
|
|
11623
11626
|
ensureIsFunction(definitionFn, 'xdescribe');
|
|
11624
11627
|
const suite = this.suiteFactory_(description, filename);
|
|
11625
|
-
suite.exclude();
|
|
11628
|
+
suite.exclude('Temporarily disabled with xdescribe');
|
|
11626
11629
|
this.addSpecsToSuite_(suite, definitionFn);
|
|
11627
11630
|
|
|
11628
11631
|
return suite;
|
|
@@ -11726,7 +11729,7 @@ getJasmineRequireObj().SuiteBuilder = function(j$) {
|
|
|
11726
11729
|
|
|
11727
11730
|
const spec = this.specFactory_(description, fn, timeout, filename);
|
|
11728
11731
|
if (this.currentDeclarationSuite_.markedExcluding) {
|
|
11729
|
-
spec.exclude();
|
|
11732
|
+
spec.exclude(this.currentDeclarationSuite_.excludeMessage);
|
|
11730
11733
|
}
|
|
11731
11734
|
this.currentDeclarationSuite_.addChild(spec);
|
|
11732
11735
|
|
|
@@ -12490,5 +12493,5 @@ getJasmineRequireObj().UserContext = function(j$) {
|
|
|
12490
12493
|
};
|
|
12491
12494
|
|
|
12492
12495
|
getJasmineRequireObj().version = function() {
|
|
12493
|
-
return '6.
|
|
12496
|
+
return '6.3.0';
|
|
12494
12497
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jasmine-core",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/jasmine/jasmine.git"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"bdd"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"
|
|
18
|
-
"test": "node scripts/runSpecsInNode.js",
|
|
17
|
+
"lint": "eslint \"src/**/*.js\" \"spec/**/*.js\" && prettier --check \"src/**/*.js\" \"spec/**/*.js\"",
|
|
18
|
+
"test": "node scripts/runSpecsInNode.js && npm run lint",
|
|
19
19
|
"test:parallel": "node scripts/runSpecsInParallel.js",
|
|
20
20
|
"cleanup": "prettier --write \"src/**/*.js\" \"spec/**/*.js\"",
|
|
21
21
|
"build": "node scripts/buildDistribution.js",
|