guard-jasmine 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -51,21 +51,19 @@
|
|
51
51
|
};
|
52
52
|
|
53
53
|
ConsoleReporter.prototype.reportSuiteResults = function(suite) {
|
54
|
-
var parent, suiteResult, _ref;
|
54
|
+
var parent, suiteResult, _base, _ref;
|
55
55
|
if (!suite.results().skipped) {
|
56
56
|
suiteResult = {
|
57
57
|
id: suite.id,
|
58
58
|
parent: (_ref = suite.parentSuite) != null ? _ref.id : void 0,
|
59
59
|
description: suite.description,
|
60
60
|
passed: suite.results().failedCount === 0,
|
61
|
-
specs: this.currentSpecs[suite.id],
|
61
|
+
specs: this.currentSpecs[suite.id] || [],
|
62
62
|
suites: []
|
63
63
|
};
|
64
64
|
if (suite.parentSuite != null) {
|
65
65
|
parent = suite.parentSuite.id;
|
66
|
-
|
67
|
-
this.nestedSuiteResults[parent] = [];
|
68
|
-
}
|
66
|
+
(_base = this.nestedSuiteResults)[parent] || (_base[parent] = []);
|
69
67
|
return this.nestedSuiteResults[parent].push(suiteResult);
|
70
68
|
} else {
|
71
69
|
this.addNestedSuites(suiteResult);
|
@@ -56,13 +56,13 @@ class ConsoleReporter
|
|
56
56
|
parent: suite.parentSuite?.id
|
57
57
|
description: suite.description
|
58
58
|
passed: suite.results().failedCount is 0
|
59
|
-
specs: @currentSpecs[suite.id]
|
59
|
+
specs: @currentSpecs[suite.id] || []
|
60
60
|
suites: []
|
61
61
|
}
|
62
62
|
|
63
63
|
if suite.parentSuite?
|
64
64
|
parent = suite.parentSuite.id
|
65
|
-
@nestedSuiteResults[parent] = []
|
65
|
+
@nestedSuiteResults[parent] or= []
|
66
66
|
@nestedSuiteResults[parent].push suiteResult
|
67
67
|
else
|
68
68
|
@addNestedSuites suiteResult
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -138,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
segments:
|
140
140
|
- 0
|
141
|
-
hash:
|
141
|
+
hash: 448009428001765921
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
none: false
|
144
144
|
requirements:
|