mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add a test case for top position greater than bottom position
This commit is contained in:
parent
45b2fa6329
commit
8a9a464e84
1 changed files with 8 additions and 0 deletions
|
|
@ -768,6 +768,14 @@ describe('Article API', () => {
|
|||
.readingProgressTopPercent
|
||||
).to.eql(topPercent)
|
||||
})
|
||||
|
||||
it('returns BAD_DATA error if top position is greater than bottom position', async () => {
|
||||
query = saveArticleReadingProgressQuery(pageId, 0.5, 0.8)
|
||||
const res = await graphqlRequest(query, authToken).expect(200)
|
||||
expect(res.body.data.saveArticleReadingProgress.errorCodes).to.eql([
|
||||
'BAD_DATA',
|
||||
])
|
||||
})
|
||||
})
|
||||
|
||||
xdescribe('SaveFile', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue