Add comment

This commit is contained in:
Adria Navarro 2024-03-05 14:47:23 +01:00
parent 8d87850765
commit 0649497ab5
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,8 @@ describe("docWritethrough", () => {
expect(storeToCacheSpy).toBeCalledTimes(45) expect(storeToCacheSpy).toBeCalledTimes(45)
// Ideally we want to spy on persistToDb from ./docWritethrough, but due our barrel files configuration required quite of a complex setup.
// We are relying on the document being stored only once (otherwise we would have _rev updated)
expect(await db.get(documentId)).toEqual( expect(await db.get(documentId)).toEqual(
expect.objectContaining({ expect.objectContaining({
_id: documentId, _id: documentId,