diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 14:23:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0 (patch) | |
tree | 7a166515e4d57a06eb3c08be569f106ed049988b /server/tests/api/notifications/comments-notifications.ts | |
parent | d0a0fa429d4651710ed951a3c11af0219e408964 (diff) | |
download | PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.tar.gz PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.tar.zst PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.zip |
Introduce user command
Diffstat (limited to 'server/tests/api/notifications/comments-notifications.ts')
-rw-r--r-- | server/tests/api/notifications/comments-notifications.ts | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/server/tests/api/notifications/comments-notifications.ts b/server/tests/api/notifications/comments-notifications.ts index ea6055386..62569f810 100644 --- a/server/tests/api/notifications/comments-notifications.ts +++ b/server/tests/api/notifications/comments-notifications.ts | |||
@@ -10,7 +10,6 @@ import { | |||
10 | MockSmtpServer, | 10 | MockSmtpServer, |
11 | prepareNotificationsTest, | 11 | prepareNotificationsTest, |
12 | ServerInfo, | 12 | ServerInfo, |
13 | updateMyUser, | ||
14 | uploadVideo, | 13 | uploadVideo, |
15 | waitJobs | 14 | waitJobs |
16 | } from '@shared/extra-utils' | 15 | } from '@shared/extra-utils' |
@@ -193,17 +192,8 @@ describe('Test comments notifications', function () { | |||
193 | token: userToken | 192 | token: userToken |
194 | } | 193 | } |
195 | 194 | ||
196 | await updateMyUser({ | 195 | await servers[0].usersCommand.updateMe({ displayName: 'super root name' }) |
197 | url: servers[0].url, | 196 | await servers[1].usersCommand.updateMe({ displayName: 'super root 2 name' }) |
198 | accessToken: servers[0].accessToken, | ||
199 | displayName: 'super root name' | ||
200 | }) | ||
201 | |||
202 | await updateMyUser({ | ||
203 | url: servers[1].url, | ||
204 | accessToken: servers[1].accessToken, | ||
205 | displayName: 'super root 2 name' | ||
206 | }) | ||
207 | }) | 197 | }) |
208 | 198 | ||
209 | it('Should not send a new mention comment notification if I mention the video owner', async function () { | 199 | it('Should not send a new mention comment notification if I mention the video owner', async function () { |