File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ class SlicingDiceTester {
307
307
* @param (object) result - the data received from Slicing Dice API
308
308
*/
309
309
compareJsonValue ( expected , result ) {
310
- for ( var key in expected ) {
310
+ for ( let key in expected ) {
311
311
if ( expected . hasOwnProperty ( key ) ) {
312
312
if ( ! result . hasOwnProperty ( key ) ) {
313
313
return false ;
@@ -332,11 +332,11 @@ class SlicingDiceTester {
332
332
return false ;
333
333
}
334
334
335
- var i = expected . length ;
335
+ let i = expected . length ;
336
336
337
337
while ( i -- ) {
338
- var j = result . length ;
339
- var found = false ;
338
+ let j = result . length ;
339
+ let found = false ;
340
340
341
341
while ( ! found && j -- ) {
342
342
if ( this . compareJson ( expected [ i ] , result [ j ] ) ) {
@@ -361,7 +361,7 @@ class SlicingDiceTester {
361
361
let failedTestsStr = "" ;
362
362
363
363
if ( this . failedTests . length > 0 ) {
364
- for ( var item in this . failedTests ) {
364
+ for ( let item in this . failedTests ) {
365
365
failedTestsStr += " - {0}\n" . format ( this . failedTests [ item ] ) ;
366
366
}
367
367
}
You can’t perform that action at this time.
0 commit comments