mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add test case for 0
This commit is contained in:
parent
bba0f69f62
commit
451ed1c70e
1 changed files with 10 additions and 0 deletions
|
|
@ -758,6 +758,16 @@ describe('Article API', () => {
|
|||
.readingProgressTopPercent
|
||||
).to.eql(topPercent)
|
||||
})
|
||||
|
||||
it('saves topPercent as 0 if defined as 0', async () => {
|
||||
const topPercent = 0
|
||||
query = saveArticleReadingProgressQuery(pageId, progress, topPercent)
|
||||
const res = await graphqlRequest(query, authToken).expect(200)
|
||||
expect(
|
||||
res.body.data.saveArticleReadingProgress.updatedArticle
|
||||
.readingProgressTopPercent
|
||||
).to.eql(topPercent)
|
||||
})
|
||||
})
|
||||
|
||||
xdescribe('SaveFile', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue