aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/user-notifications.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/user-notifications.ts')
-rw-r--r--server/tests/api/check-params/user-notifications.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/check-params/user-notifications.ts b/server/tests/api/check-params/user-notifications.ts
index 7de2fda79..6a588e446 100644
--- a/server/tests/api/check-params/user-notifications.ts
+++ b/server/tests/api/check-params/user-notifications.ts
@@ -233,7 +233,7 @@ describe('Test user notifications API validators', function () {
233 describe('When connecting to my notification socket', function () { 233 describe('When connecting to my notification socket', function () {
234 234
235 it('Should fail with no token', function (next) { 235 it('Should fail with no token', function (next) {
236 const socket = io(`http://localhost:${server.port}/user-notifications`, { reconnection: false }) 236 const socket = io(`${server.url}/user-notifications`, { reconnection: false })
237 237
238 socket.once('connect_error', function () { 238 socket.once('connect_error', function () {
239 socket.disconnect() 239 socket.disconnect()
@@ -247,7 +247,7 @@ describe('Test user notifications API validators', function () {
247 }) 247 })
248 248
249 it('Should fail with an invalid token', function (next) { 249 it('Should fail with an invalid token', function (next) {
250 const socket = io(`http://localhost:${server.port}/user-notifications`, { 250 const socket = io(`${server.url}/user-notifications`, {
251 query: { accessToken: 'bad_access_token' }, 251 query: { accessToken: 'bad_access_token' },
252 reconnection: false 252 reconnection: false
253 }) 253 })
@@ -264,7 +264,7 @@ describe('Test user notifications API validators', function () {
264 }) 264 })
265 265
266 it('Should success with the correct token', function (next) { 266 it('Should success with the correct token', function (next) {
267 const socket = io(`http://localhost:${server.port}/user-notifications`, { 267 const socket = io(`${server.url}/user-notifications`, {
268 query: { accessToken: server.accessToken }, 268 query: { accessToken: server.accessToken },
269 reconnection: false 269 reconnection: false
270 }) 270 })