Skip to content

Commit ad36791

Browse files
committed
test: add back sleep
1 parent cf4cff4 commit ad36791

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/firestore/refs-in-documents.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ describe('Firestore refs in documents', async () => {
173173
})
174174
})
175175

176-
it('should remove elements from arays', async () => {
176+
it('should remove elements from arrays', async () => {
177177
const docRef = await addDoc(listOfRefs, { a: [aRef, bRef, cRef] })
178178
const { data, pending, promise } = factory({
179179
ref: docRef,
@@ -183,6 +183,7 @@ describe('Firestore refs in documents', async () => {
183183
await promise.value
184184
expect(data.value).toEqual({ a: [aRef.path, bRef.path, cRef.path] })
185185
await updateDoc(docRef, { a: [aRef, cRef] })
186+
await sleep(20)
186187
await promise.value
187188

188189
expect(data.value).toEqual({ a: [aRef.path, cRef.path] })

0 commit comments

Comments
 (0)