From 95f32a13323dc123c5c074f9a141584309b2eab7 Mon Sep 17 00:00:00 2001 From: jony89 Date: Wed, 26 Feb 2020 07:58:51 +0200 Subject: [PATCH] fix: remove uneeded tests --- tests/unit/controller/stream-controller.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/unit/controller/stream-controller.js b/tests/unit/controller/stream-controller.js index 60de20232c4..3df11e27ca1 100644 --- a/tests/unit/controller/stream-controller.js +++ b/tests/unit/controller/stream-controller.js @@ -305,20 +305,4 @@ describe('StreamController', function () { }); }); }); - - describe('computeLivePosition', function () { - it('should return the current live sync position according to liveSyncDuration', function () { - streamController.config.liveSyncDuration = 2; - const levelDetails = { totalduration: 20 }; - const liveSyncPosition = streamController.computeLivePosition(8, levelDetails); - expect(liveSyncPosition).to.equal(26); - }); - - it('should return the current live sync position according to liveSyncDurationCount', function () { - streamController.config.liveSyncDurationCount = 2; - const levelDetails = { totalduration: 20, targetduration: 0.5 }; - const liveSyncPosition = streamController.computeLivePosition(8, levelDetails); - expect(liveSyncPosition).to.equal(27); - }); - }); });