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 8b389a2 commit bcf70a8Copy full SHA for bcf70a8
packages/firestore/test/unit/core/filter.test.ts
@@ -25,8 +25,7 @@ import {
25
FieldFilter,
26
Operator
27
} from '../../../src/core/filter';
28
-import { queryToTarget } from '../../../src/core/query';
29
-import { canonifyTarget } from '../../../src/core/target';
+import { canonifyQuery } from '../../../src/core/query';
30
import { andFilter, filter, orFilter, query } from '../../util/helpers';
31
32
describe('FieldFilter', () => {
@@ -97,12 +96,8 @@ describe('CompositeFilter', () => {
97
96
});
98
99
it('computes canonical id of flat conjunctions', () => {
100
- const target1 = query('col', a, b, c);
101
-
102
- const target2 = query('col', andFilter(a, b, c));
103
104
- expect(canonifyTarget(queryToTarget(target1))).to.equal(
105
- canonifyTarget(queryToTarget(target2))
106
- );
+ const query1 = query('col', a, b, c);
+ const query2 = query('col', andFilter(a, b, c));
+ expect(canonifyQuery(query1)).to.equal(canonifyQuery(query2));
107
108
0 commit comments