Skip to content

Commit 2ab5596

Browse files
author
Jeffery McRiffey
committed
lint
1 parent 4cda3e0 commit 2ab5596

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

lib/_patch/jasmine2-plugin.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
(function(){
2-
var checker = setInterval(function(){
3-
if(!jasmine.running){
1+
(function() {
2+
var checker = setInterval(function() {
3+
if (!jasmine.running) {
44
var results = {};
55
var specs = jsApiReporter.specs();
6+
var s;
67
results.runtime = jsApiReporter.executionTime();
78
results.total = 0;
89
results.passed = 0;
910
results.failed = 0;
1011
results.tracebacks = [];
1112

12-
for(spec in specs){
13-
var s = specs[spec]
14-
15-
if (s.status === 'passed') {
13+
for (s in specs) {
14+
if (specs[s].status === 'passed') {
1615
results.passed++;
1716
} else {
1817
results.tracebacks.push(s.description);
@@ -22,7 +21,7 @@
2221

2322
results.total = results.passed + results.failed;
2423
results.url = window.location.pathname;
25-
BrowserStack.post("/_report", results, function(){});
24+
BrowserStack.post('/_report', results, function(){});
2625
}
2726
clearInterval(checker);
2827
}, 1000);

0 commit comments

Comments
 (0)