Skip to content

Commit

Permalink
Object diffs unordered
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Nov 14, 2016
1 parent 7d83949 commit a1cdcd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ describe("discrepances", function(){
{a:f1 , b:f2 , expect:discrepances(f1.toString(), f2.toString()) },
{a:{a:'a', b:[]}, b:{a:'A', b:discrepances.test(Array.isArray)}, expect:{object:{a:discrepances('a', 'A')}} },
{a:{a:'a', b:'b'}, b:{a:'a', b:discrepances.test(Array.isArray)}, expect:{object:{b:{fail:'isArray'}}} },
{a:{a:'A',b:'B',c:'C'} , b:{e:'E',f:'F',a:'A'},
expect:{object:{'b':{'onlyLeft':'B'}, 'c':{'onlyLeft':'C'}, 'e':{'onlyRight':'E'}, 'f':{'onlyRight':'F'}}}
},
];
// esto es para evitar que values:[] tenga fechas distintas a 'a' y 'b'
var dateFixtures = [
Expand Down

0 comments on commit a1cdcd6

Please sign in to comment.