mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add readAt to api response
This commit is contained in:
parent
c5c8763767
commit
de09a36c1c
1 changed files with 3 additions and 0 deletions
|
|
@ -302,6 +302,7 @@ const saveArticleReadingProgressQuery = (
|
|||
updatedArticle {
|
||||
id
|
||||
readingProgressPercent
|
||||
readAt
|
||||
}
|
||||
}
|
||||
... on SaveArticleReadingProgressError {
|
||||
|
|
@ -845,6 +846,8 @@ describe('Article API', () => {
|
|||
res.body.data.saveArticleReadingProgress.updatedArticle
|
||||
.readingProgressPercent
|
||||
).to.eq(progress)
|
||||
expect(res.body.data.saveArticleReadingProgress.updatedArticle.readAt)
|
||||
.not.null
|
||||
})
|
||||
|
||||
it('should not allow setting the reading progress lower than current progress', async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue