Skip to content

Commit

Permalink
fix: remove uneeded tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jony89 committed Feb 26, 2020
1 parent c356efd commit 95f32a1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/unit/controller/stream-controller.js
Expand Up @@ -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);
});
});
});

0 comments on commit 95f32a1

Please sign in to comment.