From aec1179a309ae0ccf3b16e50a965efe2288438eb Mon Sep 17 00:00:00 2001 From: ssh24 Date: Wed, 2 Aug 2017 10:45:36 -0400 Subject: [PATCH] Sort arrays before testing Sorting the array so the ordering is the same --- test/relations.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/relations.test.js b/test/relations.test.js index 5acad922..a057d233 100644 --- a/test/relations.test.js +++ b/test/relations.test.js @@ -956,7 +956,7 @@ describe('relations', function() { records.length.should.eql(2); const expected = ['a:test', 'z:test']; const actual = records.map(function(r) { return r.name + ':' + r.realm; }); - actual.should.eql(expected); + actual.sort().should.eql(expected.sort()); done(); }); }