mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Authenticate before make/quit friends (server + tests)
This commit is contained in:
@@ -82,6 +82,16 @@ describe('Test users', function () {
|
||||
utils.uploadVideo(server.url, accessToken, 'my super name', 'my super description', 'video_short.webm', 401, done)
|
||||
})
|
||||
|
||||
it('Should not be able to make friends', function (done) {
|
||||
accessToken = 'mysupertoken'
|
||||
utils.makeFriends(server.url, accessToken, 401, done)
|
||||
})
|
||||
|
||||
it('Should not be able to quit friends', function (done) {
|
||||
accessToken = 'mysupertoken'
|
||||
utils.quitFriends(server.url, accessToken, 401, done)
|
||||
})
|
||||
|
||||
it('Should be able to login', function (done) {
|
||||
utils.login(server.url, server.client, server.user, 200, function (err, res) {
|
||||
if (err) throw err
|
||||
|
||||
Reference in New Issue
Block a user