diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-27 09:07:38 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-27 17:10:52 +0200 |
commit | 29837f8885eb37fa300e4b80c90a6d03ab337084 (patch) | |
tree | a7a066c6604c9adec4cb21c1bd1965c5bf253b03 /server/tests/api/notifications/notifications-api.ts | |
parent | 5d0095fde19d803bead7cbad0452bd09f3351adc (diff) | |
download | PeerTube-29837f8885eb37fa300e4b80c90a6d03ab337084.tar.gz PeerTube-29837f8885eb37fa300e4b80c90a6d03ab337084.tar.zst PeerTube-29837f8885eb37fa300e4b80c90a6d03ab337084.zip |
Add ability to search by host in server
Diffstat (limited to 'server/tests/api/notifications/notifications-api.ts')
-rw-r--r-- | server/tests/api/notifications/notifications-api.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/tests/api/notifications/notifications-api.ts b/server/tests/api/notifications/notifications-api.ts index fa4b53db6..a529a9bf7 100644 --- a/server/tests/api/notifications/notifications-api.ts +++ b/server/tests/api/notifications/notifications-api.ts | |||
@@ -111,10 +111,10 @@ describe('Test notifications API', function () { | |||
111 | expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.NONE) | 111 | expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.NONE) |
112 | } | 112 | } |
113 | 113 | ||
114 | const { name, uuid } = await server.videos.randomUpload() | 114 | const { name, shortUUID } = await server.videos.randomUpload() |
115 | 115 | ||
116 | const check = { web: true, mail: true } | 116 | const check = { web: true, mail: true } |
117 | await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence') | 117 | await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' }) |
118 | }) | 118 | }) |
119 | 119 | ||
120 | it('Should only have web notifications', async function () { | 120 | it('Should only have web notifications', async function () { |
@@ -130,16 +130,16 @@ describe('Test notifications API', function () { | |||
130 | expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.WEB) | 130 | expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.WEB) |
131 | } | 131 | } |
132 | 132 | ||
133 | const { name, uuid } = await server.videos.randomUpload() | 133 | const { name, shortUUID } = await server.videos.randomUpload() |
134 | 134 | ||
135 | { | 135 | { |
136 | const check = { mail: true, web: false } | 136 | const check = { mail: true, web: false } |
137 | await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence') | 137 | await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' }) |
138 | } | 138 | } |
139 | 139 | ||
140 | { | 140 | { |
141 | const check = { mail: false, web: true } | 141 | const check = { mail: false, web: true } |
142 | await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'presence') | 142 | await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'presence' }) |
143 | } | 143 | } |
144 | }) | 144 | }) |
145 | 145 | ||
@@ -156,16 +156,16 @@ describe('Test notifications API', function () { | |||
156 | expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.EMAIL) | 156 | expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.EMAIL) |
157 | } | 157 | } |
158 | 158 | ||
159 | const { name, uuid } = await server.videos.randomUpload() | 159 | const { name, shortUUID } = await server.videos.randomUpload() |
160 | 160 | ||
161 | { | 161 | { |
162 | const check = { mail: false, web: true } | 162 | const check = { mail: false, web: true } |
163 | await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence') | 163 | await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' }) |
164 | } | 164 | } |
165 | 165 | ||
166 | { | 166 | { |
167 | const check = { mail: true, web: false } | 167 | const check = { mail: true, web: false } |
168 | await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'presence') | 168 | await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'presence' }) |
169 | } | 169 | } |
170 | }) | 170 | }) |
171 | 171 | ||
@@ -187,9 +187,9 @@ describe('Test notifications API', function () { | |||
187 | ) | 187 | ) |
188 | } | 188 | } |
189 | 189 | ||
190 | const { name, uuid } = await server.videos.randomUpload() | 190 | const { name, shortUUID } = await server.videos.randomUpload() |
191 | 191 | ||
192 | await checkNewVideoFromSubscription(baseParams, name, uuid, 'presence') | 192 | await checkNewVideoFromSubscription({ ...baseParams, videoName: name, shortUUID, checkType: 'presence' }) |
193 | }) | 193 | }) |
194 | }) | 194 | }) |
195 | 195 | ||