X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fnotifications%2Fuser-notifications.ts;h=3c9c7fe31bbab4a4043163c6ac5059ff037ac2e9;hb=0dd57e4d43b06a70a45b77f2006f805f9a42116c;hp=2a632e16ff4decd9508fe22bfc2f63dcf7b01768;hpb=818c449b3c34e9f324ac744120c8774e724ab25e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index 2a632e16f..3c9c7fe31 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts @@ -63,7 +63,7 @@ import { addUserSubscription, removeUserSubscription } from '../../../../shared/ import { VideoPrivacy } from '../../../../shared/models/videos' import { getBadVideoUrl, getYoutubeVideoUrl, importVideo } from '../../../../shared/extra-utils/videos/video-imports' import { addVideoCommentReply, addVideoCommentThread } from '../../../../shared/extra-utils/videos/video-comments' -import * as uuidv4 from 'uuid/v4' +import { v4 as uuidv4 } from 'uuid' import { addAccountToAccountBlocklist, removeAccountFromAccountBlocklist } from '../../../../shared/extra-utils/users/blocklist' import { CustomConfig } from '../../../../shared/models/server' import { VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' @@ -1024,15 +1024,16 @@ describe('Test users notifications', function () { await removeUserSubscription(servers[1].url, servers[1].accessToken, 'user_1_channel@localhost:' + servers[0].port) }) - it('Should notify when a local account is following one of our channel', async function () { - this.timeout(10000) - - await addUserSubscription(servers[0].url, servers[0].accessToken, 'user_1@localhost:' + servers[0].port) - - await waitJobs(servers) - - await checkNewActorFollow(baseParams, 'account', 'root', 'super root name', myUserName, 'presence') - }) + // PeerTube does not support accout -> account follows + // it('Should notify when a local account is following one of our channel', async function () { + // this.timeout(10000) + // + // await addUserSubscription(servers[0].url, servers[0].accessToken, 'user_1@localhost:' + servers[0].port) + // + // await waitJobs(servers) + // + // await checkNewActorFollow(baseParams, 'account', 'root', 'super root name', myUserName, 'presence') + // }) it('Should notify when a remote account is following one of our channel', async function () { this.timeout(10000)