Skip to content

Commit 012f958

Browse files
committed
Fixed broken test
1 parent 99806bb commit 012f958

File tree

1 file changed

+2
-2
lines changed
  • firebase-firestore/src/commonTest/kotlin/dev/gitlive/firebase/firestore

1 file changed

+2
-2
lines changed

firebase-firestore/src/commonTest/kotlin/dev/gitlive/firebase/firestore/WriteBatchTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ class WriteBatchTest : BaseFirebaseFirestoreTest() {
167167
)
168168

169169
val batch = firestore.batch()
170-
batch.update(doc1) {
170+
batch.updateFields(doc1) {
171171
FirestoreTest::prop1.name to "prop1-updated"
172172
FieldPath(FirestoreTest::optional.name) to "notNull"
173173
FirestoreTest::duration.name.to(DurationAsIntSerializer(), 300.milliseconds)
174174
FieldPath(FirestoreTest::nested.name).to(NestedObject.serializer(), NestedObject("nested"))
175175
}
176-
batch.update(doc2) {
176+
batch.updateFields(doc2) {
177177
FirestoreTest::prop1.name to "prop2-updated"
178178
FieldPath(FirestoreTest::optional.name) to "alsoNotNull"
179179
FirestoreTest::duration.name.to(DurationAsIntSerializer(), 200.milliseconds)

0 commit comments

Comments
 (0)