Skip to content

Commit

Permalink
database.test.ts: move an inline comment to be above the appropriate …
Browse files Browse the repository at this point in the history
…line
  • Loading branch information
dconeybe committed Sep 27, 2023
1 parent 3ee6db2 commit 5d6cf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firestore/test/integration/api/database.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1865,9 +1865,9 @@ apiDescribe('Database', persistence => {
};
const testDocs = { doc1: { value: 42 } };
return withTestCollection(persistence, testDocs, async collectionRef => {
const query_ = query(collectionRef, where('value', '==', 42));
// The line below should compile since the DbModelType type parameter of
// Query.withConverter() has a default value.
const query_ = query(collectionRef, where('value', '==', 42));
const typedQuery = query_.withConverter<number>(converter);
const snapshot = await getDocs(typedQuery);
expect(snapshot.size).to.equal(1);
Expand Down

0 comments on commit 5d6cf7c

Please sign in to comment.