From 99fa5c5badd4f4d35a1d55c80b0102ee1c4e71cd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Nov 2020 10:27:02 +0100 Subject: [PATCH] Fix theater mode --- .../+videos/+video-watch/video-watch.component.scss | 1 + server/tests/api/check-params/user-notifications.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/client/src/app/+videos/+video-watch/video-watch.component.scss b/client/src/app/+videos/+video-watch/video-watch.component.scss index 4bf5ff808..712022141 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.scss +++ b/client/src/app/+videos/+video-watch/video-watch.component.scss @@ -29,6 +29,7 @@ $video-info-margin-left: 44px; #videojs-wrapper { width: 100%; + height: auto; } ::ng-deep .video-js { diff --git a/server/tests/api/check-params/user-notifications.ts b/server/tests/api/check-params/user-notifications.ts index c6384677e..4aab7eba4 100644 --- a/server/tests/api/check-params/user-notifications.ts +++ b/server/tests/api/check-params/user-notifications.ts @@ -238,7 +238,7 @@ describe('Test user notifications API validators', function () { it('Should fail with no token', function (next) { const socket = io(`http://localhost:${server.port}/user-notifications`, { reconnection: false }) - socket.on('error', () => { + socket.on('error', function () { socket.removeListener('error', this) socket.disconnect() next() @@ -256,7 +256,7 @@ describe('Test user notifications API validators', function () { reconnection: false }) - socket.on('error', () => { + socket.on('error', function () { socket.removeListener('error', this) socket.disconnect() next() @@ -274,9 +274,11 @@ describe('Test user notifications API validators', function () { reconnection: false }) - const errorListener = socket.on('error', err => { + function errorListener (err) { next(new Error('Error in connection: ' + err)) - }) + } + + socket.on('error', errorListener) socket.on('connect', async () => { socket.removeListener('error', errorListener)