Skip to content

Commit bcf70a8

Browse files
authored
Use canonifyQuery rather than canonifyTarget in unit test. (#7051)
1 parent 8b389a2 commit bcf70a8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/firestore/test/unit/core/filter.test.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ import {
2525
FieldFilter,
2626
Operator
2727
} from '../../../src/core/filter';
28-
import { queryToTarget } from '../../../src/core/query';
29-
import { canonifyTarget } from '../../../src/core/target';
28+
import { canonifyQuery } from '../../../src/core/query';
3029
import { andFilter, filter, orFilter, query } from '../../util/helpers';
3130

3231
describe('FieldFilter', () => {
@@ -97,12 +96,8 @@ describe('CompositeFilter', () => {
9796
});
9897

9998
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-
);
99+
const query1 = query('col', a, b, c);
100+
const query2 = query('col', andFilter(a, b, c));
101+
expect(canonifyQuery(query1)).to.equal(canonifyQuery(query2));
107102
});
108103
});

0 commit comments

Comments
 (0)