File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/firestore/test/lite Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1553,13 +1553,17 @@ describe('withConverter() support', () => {
1553
1553
} ) ;
1554
1554
} ) ;
1555
1555
1556
- it ( 'allows certain types but not others (prevent breaking changes) ' , ( ) => {
1556
+ it ( 'allows certain types but not others' , ( ) => {
1557
1557
const withTryCatch = async ( fn : ( ) => Promise < void > ) : Promise < void > => {
1558
1558
try {
1559
1559
await fn ( ) ;
1560
1560
} catch { }
1561
1561
} ;
1562
1562
1563
+ // These tests exist to establish which object types are allowed to be
1564
+ // passed in by default when `T = DocumentData`. Some objects extend
1565
+ // the Javascript `{}`, which is why they're allowed whereas others
1566
+ // throw an error.
1563
1567
return withTestDoc ( async doc => {
1564
1568
// @ts -expect-error
1565
1569
await withTryCatch ( ( ) => setDoc ( doc , 1 ) ) ;
You can’t perform that action at this time.
0 commit comments