Permalink
Browse files

adjusted findKeysTest to work with results in different order

  • Loading branch information...
1 parent 8092b5c commit fb2e63840fe1fe662f09a869dd0da35273ef7132 @cebe cebe committed Mar 5, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 findKeysTest.js
View
@@ -88,6 +88,8 @@ var doTest=function(key,notKey,expectedLength,expectedValue,callback){
}
try{
+ value.sort();
+ expectedValue.sort();
assert.deepEqual(value.length, expectedLength, "different result amount than expected returned. Expected: "+expectedLength+", Actual: "+value.length);
assert.deepEqual(value, expectedValue, "wrong values returned. Expected: "+expectedValue+", Actual: "+ value);
}

0 comments on commit fb2e638

Please sign in to comment.