mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix get article test
This commit is contained in:
parent
7d2d2ff410
commit
edd44fcafc
4 changed files with 7 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ export interface Highlight {
|
|||
suffix?: string | null
|
||||
annotation?: string | null
|
||||
sharedAt?: Date | null
|
||||
updatedAt?: Date
|
||||
updatedAt: Date
|
||||
labels?: Label[]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ describe('elastic api', () => {
|
|||
id: highlightId,
|
||||
userId: page.userId,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
}
|
||||
|
||||
await addHighlightToPage(page.id, highlightData, ctx)
|
||||
|
|
@ -288,6 +289,7 @@ describe('elastic api', () => {
|
|||
id: highlightId,
|
||||
userId: page.userId,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
}
|
||||
|
||||
await addHighlightToPage(page.id, highlightData, ctx)
|
||||
|
|
|
|||
|
|
@ -460,6 +460,7 @@ describe('Article API', () => {
|
|||
createdAt: new Date(),
|
||||
patch: 'test patch',
|
||||
quote: 'test quote',
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
],
|
||||
} as Page
|
||||
|
|
|
|||
|
|
@ -271,6 +271,7 @@ describe('Labels API', () => {
|
|||
userId: user.id,
|
||||
createdAt: new Date(),
|
||||
labels: [toDeleteLabel],
|
||||
updatedAt: new Date(),
|
||||
}
|
||||
await addHighlightToPage(page.id, highlight, ctx)
|
||||
})
|
||||
|
|
@ -527,6 +528,7 @@ describe('Labels API', () => {
|
|||
quote: 'test quote',
|
||||
shortId: 'test shortId',
|
||||
userId: user.id,
|
||||
updatedAt: new Date(),
|
||||
}
|
||||
await addHighlightToPage(page.id, highlight, ctx)
|
||||
labelIds = [labels[0].id, labels[1].id]
|
||||
|
|
@ -550,6 +552,7 @@ describe('Labels API', () => {
|
|||
quote: 'test quote',
|
||||
shortId: 'test shortId',
|
||||
userId: user.id,
|
||||
updatedAt: new Date(),
|
||||
}
|
||||
await addHighlightToPage(page.id, highlight, ctx)
|
||||
labelIds = [generateFakeUuid(), generateFakeUuid()]
|
||||
|
|
|
|||
Loading…
Reference in a new issue