@@ -592,7 +592,7 @@ describe('Core Parser Tests', function() {
592
592
function generateTest ( test ) {
593
593
( test . disabled ? it . skip : it ) ( test . description , function ( ) {
594
594
var actual = new Papa . Parser ( test . config ) . parse ( test . input ) ;
595
- assert . deepEqual ( JSON . stringify ( actual . errors ) , JSON . stringify ( test . expected . errors ) ) ;
595
+ assert . deepEqual ( actual . errors , test . expected . errors ) ;
596
596
assert . deepEqual ( actual . data , test . expected . data ) ;
597
597
} ) ;
598
598
}
@@ -1475,7 +1475,7 @@ describe('Parse Tests', function() {
1475
1475
if ( test . expected . meta ) {
1476
1476
assert . deepEqual ( actual . meta , test . expected . meta ) ;
1477
1477
}
1478
- assert . deepEqual ( JSON . stringify ( actual . errors ) , JSON . stringify ( test . expected . errors ) ) ;
1478
+ assert . deepEqual ( actual . errors , test . expected . errors ) ;
1479
1479
assert . deepEqual ( actual . data , test . expected . data ) ;
1480
1480
} ) ;
1481
1481
}
@@ -1556,7 +1556,7 @@ describe('Parse Async Tests', function() {
1556
1556
var config = test . config ;
1557
1557
1558
1558
config . complete = function ( actual ) {
1559
- assert . deepEqual ( JSON . stringify ( actual . errors ) , JSON . stringify ( test . expected . errors ) ) ;
1559
+ assert . deepEqual ( actual . errors , test . expected . errors ) ;
1560
1560
assert . deepEqual ( actual . data , test . expected . data ) ;
1561
1561
done ( ) ;
1562
1562
} ;
@@ -2384,7 +2384,7 @@ describe('Custom Tests', function() {
2384
2384
this . timeout ( test . timeout ) ;
2385
2385
}
2386
2386
test . run ( function ( actual ) {
2387
- assert . deepEqual ( JSON . stringify ( actual ) , JSON . stringify ( test . expected ) ) ;
2387
+ assert . deepEqual ( actual , test . expected ) ;
2388
2388
done ( ) ;
2389
2389
} ) ;
2390
2390
} ) ;
0 commit comments