File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- ( function ( ) {
2
- var checker = setInterval ( function ( ) {
3
- if ( ! jasmine . running ) {
1
+ ( function ( ) {
2
+ var checker = setInterval ( function ( ) {
3
+ if ( ! jasmine . running ) {
4
4
var results = { } ;
5
5
var specs = jsApiReporter . specs ( ) ;
6
+ var s ;
6
7
results . runtime = jsApiReporter . executionTime ( ) ;
7
8
results . total = 0 ;
8
9
results . passed = 0 ;
9
10
results . failed = 0 ;
10
11
results . tracebacks = [ ] ;
11
12
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' ) {
16
15
results . passed ++ ;
17
16
} else {
18
17
results . tracebacks . push ( s . description ) ;
22
21
23
22
results . total = results . passed + results . failed ;
24
23
results . url = window . location . pathname ;
25
- BrowserStack . post ( " /_report" , results , function ( ) { } ) ;
24
+ BrowserStack . post ( ' /_report' , results , function ( ) { } ) ;
26
25
}
27
26
clearInterval ( checker ) ;
28
27
} , 1000 ) ;
You can’t perform that action at this time.
0 commit comments