expect(res.body.code).to.equal('invalid_client')
expect(res.body.error).to.contain('client is invalid')
+ expect(res.body.type.startsWith('https://')).to.be.true
+ expect(res.body.type).to.contain('invalid_client')
})
it('Should not login with an invalid client secret', async function () {
expect(res.body.code).to.equal('invalid_client')
expect(res.body.error).to.contain('client is invalid')
+ expect(res.body.type.startsWith('https://')).to.be.true
+ expect(res.body.type).to.contain('invalid_client')
})
})
expect(res.body.code).to.equal('invalid_grant')
expect(res.body.error).to.contain('credentials are invalid')
+ expect(res.body.type.startsWith('https://')).to.be.true
+ expect(res.body.type).to.contain('invalid_grant')
})
it('Should not login with an invalid password', async function () {
expect(res.body.code).to.equal('invalid_grant')
expect(res.body.error).to.contain('credentials are invalid')
+ expect(res.body.type.startsWith('https://')).to.be.true
+ expect(res.body.type).to.contain('invalid_grant')
})
it('Should not be able to upload a video', async function () {