mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix tests
This commit is contained in:
parent
a3ba8573b7
commit
8bc05dad03
1 changed files with 5 additions and 5 deletions
|
|
@ -452,9 +452,9 @@ describe('Labels API', () => {
|
|||
labelIds = [labels[0].id, labels[1].id]
|
||||
})
|
||||
|
||||
it('should return error code BAD_REQUEST', async () => {
|
||||
it('should return error code UNAUTHORIZED', async () => {
|
||||
const res = await graphqlRequest(query, authToken).expect(200)
|
||||
expect(res.body.data.setLabels.errorCodes).to.eql(['BAD_REQUEST'])
|
||||
expect(res.body.data.setLabels.errorCodes).to.eql(['UNAUTHORIZED'])
|
||||
})
|
||||
})
|
||||
|
||||
|
|
@ -670,14 +670,14 @@ describe('Labels API', () => {
|
|||
|
||||
context('when highlight not exist', () => {
|
||||
before(() => {
|
||||
highlightId = 'fake_highlight_id'
|
||||
highlightId = generateFakeUuid()
|
||||
labelIds = [labels[0].id, labels[1].id]
|
||||
})
|
||||
|
||||
it('should return error code BAD_REQUEST', async () => {
|
||||
it('should return error code UNAUTHORIZED', async () => {
|
||||
const res = await graphqlRequest(query, authToken).expect(200)
|
||||
expect(res.body.data.setLabelsForHighlight.errorCodes).to.eql([
|
||||
'BAD_REQUEST',
|
||||
'UNAUTHORIZED',
|
||||
])
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue