File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ lib-cov
16
16
17
17
# Coverage directory used by tools like istanbul
18
18
coverage
19
+ .nyc_output /
19
20
20
21
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21
22
.grunt
Original file line number Diff line number Diff line change @@ -63,14 +63,16 @@ describe('WantManager', () => {
63
63
expect ( calls . connects ) . to . have . length ( 6 )
64
64
expect ( calls . messages ) . to . have . length ( 6 )
65
65
66
- calls . messages . forEach ( ( m , i ) => {
67
- expect ( m [ 0 ] ) . to . be . eql ( calls . connects [ i ] )
66
+ for ( let i = 0 ; i < calls . messages . length ; i ++ ) {
67
+ const m = calls . messages [ i ]
68
+ const connect = calls . connects [ i ]
69
+ expect ( m [ 0 ] ) . to . be . eql ( connect )
68
70
if ( ! m [ 1 ] . equals ( msgs [ i ] ) ) {
69
71
return done (
70
72
new Error ( `expected ${ m [ 1 ] . toString ( ) } to equal ${ msgs [ i ] . toString ( ) } ` )
71
73
)
72
74
}
73
- } )
75
+ }
74
76
75
77
done ( )
76
78
} )
You can’t perform that action at this time.
0 commit comments