不要怂,就是干,撸起袖子干!

Commit 826d0407 by Mick Hansen

chore(association/scope): fix weirdly failing test

1 parent e9bb2956
Showing with 3 additions and 0 deletions
...@@ -1101,6 +1101,9 @@ describe(Support.getTestDialectTeaser("HasMany"), function() { ...@@ -1101,6 +1101,9 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
} }
); );
}).then(function (userGroups) { }).then(function (userGroups) {
userGroups.sort(function (a, b) {
return a.userId < b.userId ? - 1 : 1;
});
expect(userGroups[0].userId).to.equal(1); expect(userGroups[0].userId).to.equal(1);
expect(userGroups[0].isAdmin).to.be.ok; expect(userGroups[0].isAdmin).to.be.ok;
expect(userGroups[1].userId).to.equal(2); expect(userGroups[1].userId).to.equal(2);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!