Skip to content

Commit 30fe1f5

Browse files
committed
fix(firestore): test converter with undefined property
1 parent 8940a74 commit 30fe1f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/firestore/e2e/withConverter.e2e.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ describe('withConverter() support', function () {
271271

272272
it('requires the correct converter for Partial usage', async function () {
273273
return withTestDb(async db => {
274+
db.settings({ ignoreUndefinedProperties: false });
274275
const coll = collection(db, 'posts');
275276
const ref = doc(coll, 'post').withConverter(postConverter);
276277
const batch = writeBatch(db);
@@ -281,6 +282,7 @@ describe('withConverter() support', function () {
281282
} catch (error) {
282283
error.message.should.containEql('Unsupported field value: undefined');
283284
}
285+
db.settings({ ignoreUndefinedProperties: true });
284286
return Promise.resolve();
285287
});
286288
});

0 commit comments

Comments
 (0)