Skip to content

Commit b239cb3

Browse files
Better test
1 parent d1dff7f commit b239cb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/firestore/test/unit/model/path.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ describe('Path', () => {
160160
expect(abc.isPrefixOf(ba)).to.equal(false);
161161
});
162162

163-
it('escaped FieldPath with segments', () => {
164-
const path = new FieldPath(['foo.`bar`']);
165-
expect(path.canonicalString()).to.equal('`foo.\\`bar\\``');
163+
it('escapes FieldPath with segments', () => {
164+
const path = new FieldPath(['\\foo\\.`bar`']);
165+
expect(path.canonicalString()).to.equal('`\\\\foo\\\\.\\`bar\\``');
166166
});
167167

168168
it('can be constructed from field path.', () => {

0 commit comments

Comments
 (0)