diff --git a/backend/src/revisions/revisions.service.spec.ts b/backend/src/revisions/revisions.service.spec.ts index b458f785e..0f734f156 100644 --- a/backend/src/revisions/revisions.service.spec.ts +++ b/backend/src/revisions/revisions.service.spec.ts @@ -199,7 +199,7 @@ describe('RevisionsService', () => { describe('createRevision', () => { it('creates a new revision', async () => { - const note = Mock.of({}); + const note = Mock.of({ publicId: 'test-note' }); const oldContent = 'old content\n'; const newContent = 'new content\n'; @@ -216,10 +216,10 @@ describe('RevisionsService', () => { expect(createdRevision?.content).toBe(newContent); await expect(createdRevision?.note).resolves.toBe(note); expect(createdRevision?.patch).toMatchInlineSnapshot(` - "Index: markdownContent + "Index: test-note =================================================================== - --- markdownContent - +++ markdownContent + --- test-note + +++ test-note @@ -1,1 +1,1 @@ -old content +new content