Skip to content

Commit 9d8219b

Browse files
author
Brian Chen
committed
update test
1 parent 4b6fa67 commit 9d8219b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/firestore/lite/src/api/write_batch.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,7 @@ export function validateReference<T>(
161161
'Provided document reference is from a different Firestore instance.'
162162
);
163163
} else {
164-
return (cast(
165-
documentRef,
166-
DocumentReference
167-
) as unknown) as DocumentReference<T>;
164+
return cast(documentRef, DocumentReference) as DocumentReference<T>;
168165
}
169166
}
170167

packages/firestore/lite/test/integration.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,8 +1085,9 @@ describe('withConverter() support', () => {
10851085
expect(() =>
10861086
batch.set(ref, { title: 'olive' }, { merge: true })
10871087
).to.throw(
1088-
'Function WriteBatch.set() called with invalid data. Unsupported ' +
1089-
'field value: undefined (found in field author in document posts/post)'
1088+
'Function WriteBatch.set() called with invalid data ' +
1089+
'(via `toFirestore()`). Unsupported field value: undefined ' +
1090+
'(found in field author in document posts/post)'
10901091
);
10911092
});
10921093
});

0 commit comments

Comments
 (0)