Add comment

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

View File

@ -256,6 +256,8 @@ describe("docWritethrough", () => {
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.objectContaining({
_id: documentId,