Skip to content

Commit

Permalink
fix: remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-fedyshyn-nordwhale committed Oct 15, 2019
1 parent 3042d59 commit 145bb4d
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/server/verification/__tests__/verificationAPI.js
Expand Up @@ -63,20 +63,6 @@ describe('verificationAPI', () => {
.expect(200, { ok: 1, onlyInEnv: { current: 'test', onlyIn: ['production', 'staging'] } })
})

test('/verify/sendnewotp without creds -> 401', async () => {
await request(server)
.post('/verify/sendnewotp')
.expect(401)
})

test('/verify/sendnewotp with creds', async () => {
const token = await getToken(server)
await request(server)
.post('/verify/sendnewotp')
.set('Authorization', `Bearer ${token}`)
.expect(200, { ok: 1, onlyInEnv: { current: 'test', onlyIn: ['production', 'staging'] } })
})

test('/verify/sendemail with creds', async () => {
const token = await getToken(server)

Expand Down Expand Up @@ -107,24 +93,6 @@ describe('verificationAPI', () => {
expect(dbUser.emailVerificationCode).toBeTruthy()
})

test('/verify/sendnewemail without creds -> 401', async () => {
await request(server)
.post('/verify/sendnewemail')
.expect(401)
})

test('/verify/sendnewemail with creds', async () => {
const token = await getToken(server)

await request(server)
.post('/verify/sendnewemail')
.send({
email: 'johndoe@gooddollar.org'
})
.set('Authorization', `Bearer ${token}`)
.expect(200, { ok: 1 })
})

test('/verify/w3/email without auth creds -> 401', () => {
return request(server)
.post('/verify/w3/email')
Expand Down

0 comments on commit 145bb4d

Please sign in to comment.