Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
serdiukov-o-nordwhale committed Apr 15, 2021
1 parent 379973e commit d8b4162
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/server/verification/__tests__/verificationAPI.js
Expand Up @@ -214,7 +214,7 @@ describe('verificationAPI', () => {
.set('Authorization', `Bearer ${token}`)
.expect(200, {
success: true,
licenseKey: licenseKey
license: licenseKey
})
})

Expand All @@ -228,7 +228,7 @@ describe('verificationAPI', () => {
.post(licenseUri())
.send({})
.set('Authorization', `Bearer ${token}`)
.expect(200, {
.expect(400, {
success: false,
error: message
})
Expand All @@ -241,7 +241,7 @@ describe('verificationAPI', () => {
.post(licenseUri('unknown'))
.send({})
.set('Authorization', `Bearer ${token}`)
.expect(200, {
.expect(400, {
success: false,
error: 'Invalid input'
})
Expand All @@ -252,9 +252,9 @@ describe('verificationAPI', () => {
.post(licenseUri())
.send({})
.set('Authorization', `Bearer ${token}`)
.expect(200, {
.expect(400, {
success: false,
error: 'Cannot get production license running non-production mode.'
error: 'Cannot obtain production license running non-production mode.'
})
})

Expand Down

0 comments on commit d8b4162

Please sign in to comment.