We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67c5a0d commit ad40074Copy full SHA for ad40074
packages/firestore/test/unit/specs/spec_test_runner.ts
@@ -1172,7 +1172,13 @@ abstract class TestRunner {
1172
});
1173
}
1174
1175
- expect(actual.view!.docChanges).to.deep.equal(expectedChanges);
+ const actualChangesSorted = Array.from(actual.view!.docChanges).sort(
1176
+ (a, b) => primitiveComparator(a.doc, b.doc)
1177
+ );
1178
+ const expectedChangesSorted = Array.from(expectedChanges).sort((a, b) =>
1179
+ primitiveComparator(a.doc, b.doc)
1180
1181
+ expect(actualChangesSorted).to.deep.equal(expectedChangesSorted);
1182
1183
expect(actual.view!.hasPendingWrites).to.equal(
1184
expected.hasPendingWrites,
0 commit comments