We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0a7c0 commit b367cb9Copy full SHA for b367cb9
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