Skip to content

Commit 9b23f16

Browse files
author
Jeffery McRiffey
committed
jasmine2 plugin
1 parent 2ab5596 commit 9b23f16

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/_patch/jasmine2-plugin.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
if (!jasmine.running) {
44
var results = {};
55
var specs = jsApiReporter.specs();
6-
var s;
76
results.runtime = jsApiReporter.executionTime();
87
results.total = 0;
98
results.passed = 0;
109
results.failed = 0;
1110
results.tracebacks = [];
1211

13-
for (s in specs) {
14-
if (specs[s].status === 'passed') {
12+
for (var spec in specs) {
13+
if (specs[spec].status === 'passed') {
1514
results.passed++;
1615
} else {
17-
results.tracebacks.push(s.description);
16+
results.tracebacks.push(specs[spec].description);
1817
results.failed = true;
1918
}
2019
}

0 commit comments

Comments
 (0)