File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/firestore/test/integration/api Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1372,14 +1372,16 @@ apiDescribe('Database', (persistence: boolean) => {
1372
1372
return withTestDb ( persistence , async db => {
1373
1373
const ref = db
1374
1374
. collection ( 'posts' )
1375
- . doc ( )
1375
+ . doc ( 'some-post' )
1376
1376
. withConverter ( postConverter ) ;
1377
1377
await ref . set ( new Post ( 'walnut' , 'author' ) ) ;
1378
1378
const batch = db . batch ( ) ;
1379
1379
expect ( ( ) =>
1380
1380
batch . set ( ref , { title : 'olive' } , { merge : true } )
1381
1381
) . 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)'
1383
1385
) ;
1384
1386
} ) ;
1385
1387
} ) ;
You can’t perform that action at this time.
0 commit comments