Skip to content

Commit 767c936

Browse files
author
Brian Chen
committed
fix test
1 parent 4b12457 commit 767c936

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/firestore/test/integration/api/database.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,14 +1372,16 @@ apiDescribe('Database', (persistence: boolean) => {
13721372
return withTestDb(persistence, async db => {
13731373
const ref = db
13741374
.collection('posts')
1375-
.doc()
1375+
.doc('some-post')
13761376
.withConverter(postConverter);
13771377
await ref.set(new Post('walnut', 'author'));
13781378
const batch = db.batch();
13791379
expect(() =>
13801380
batch.set(ref, { title: 'olive' }, { merge: true })
13811381
).to.throw(
1382-
'Function toFirestore() in WriteBatch.set() called with invalid data. Unsupported field value: undefined (found in field author)'
1382+
'Function toFirestore() in WriteBatch.set() called with invalid ' +
1383+
'data. Unsupported field value: undefined (found in field author ' +
1384+
'in document posts/some-post)'
13831385
);
13841386
});
13851387
});

0 commit comments

Comments
 (0)