chore: fix ContentType usage (#2353)

* chore: fix ContentType usage

* chore: fix specs
This commit is contained in:
Karol Sójko
2023-07-12 13:53:29 +02:00
committed by GitHub
parent d057cdff84
commit 325737bfbd
247 changed files with 1092 additions and 1060 deletions

View File

@@ -29,7 +29,7 @@ const createNote = (name: string, options?: Partial<SNNote>) => {
archived: false,
trashed: false,
uuid: String(Math.random()),
content_type: ContentType.Note,
content_type: ContentType.TYPES.Note,
...options,
} as jest.Mocked<SNNote>
}
@@ -40,7 +40,7 @@ const createFile = (name: string, options?: Partial<FileItem>) => {
archived: false,
trashed: false,
uuid: String(Math.random()),
content_type: ContentType.File,
content_type: ContentType.TYPES.File,
...options,
} as jest.Mocked<FileItem>
}