mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Fix plugin helpers tests
This commit is contained in:
parent
0f31933406
commit
6290699080
2 changed files with 4 additions and 6 deletions
|
@ -117,13 +117,11 @@ describe('Test plugin helpers', function () {
|
|||
describe('User', function () {
|
||||
|
||||
it('Should not get a user if not authenticated', async function () {
|
||||
const res = await makeGetRequest({
|
||||
await makeGetRequest({
|
||||
url: servers[0].url,
|
||||
path: '/plugins/test-four/router/user',
|
||||
statusCodeExpected: HttpStatusCode.OK_200
|
||||
statusCodeExpected: HttpStatusCode.NOT_FOUND_404
|
||||
})
|
||||
|
||||
expect(res.body.user).to.be.undefined
|
||||
})
|
||||
|
||||
it('Should get a user if authenticated', async function () {
|
||||
|
@ -134,7 +132,6 @@ describe('Test plugin helpers', function () {
|
|||
statusCodeExpected: HttpStatusCode.OK_200
|
||||
})
|
||||
|
||||
expect(res.body.user).to.exist
|
||||
expect(res.body.username).to.equal('root')
|
||||
expect(res.body.isAdmin).to.be.true
|
||||
expect(res.body.isModerator).to.be.false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue