Skip to content

Commit

Permalink
test: (() => { ... }) => function () { ... }
Browse files Browse the repository at this point in the history
  • Loading branch information
Beraliv committed Jan 22, 2019
1 parent 946ed07 commit fee36fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/unit/controller/abr-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import Hls from '../../../src/hls';

const assert = require('assert');

describe('AbrController', () => {
it('should return null if _bwEstimator is not specified', () => {
describe('AbrController', function () {
it('should return null if _bwEstimator is not specified', function () {
let hls = new Hls();
assert.strictEqual(hls.abrController._bwEstimator, null);
});

it('should return correct next auto level', () => {
it('should return correct next auto level', function () {
let hls = new Hls({ maxStarvationDelay: 4 });
hls.levelController._levels = [
{ bitrate: 105000, name: '144', details: { totalduration: 4, fragments: [{}] } },
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Hls from '../../src/hls';

const assert = require('assert');

describe('Hls', () => {
it('should return a bandwidth estimate if the estimator exists', () => {
describe('Hls', function () {
it('should return a bandwidth estimate if the estimator exists', function () {
const MOCKED_ESTIMATE = 2000;
const hls = new Hls();
hls.abrController = {
Expand All @@ -14,7 +14,7 @@ describe('Hls', () => {
assert.strictEqual(hls.bandwidthEstimate, MOCKED_ESTIMATE);
});

it('should return NaN if the estimator does not exist', () => {
it('should return NaN if the estimator does not exist', function () {
const hls = new Hls();
assert.strictEqual(isNaN(hls.bandwidthEstimate), true);
});
Expand Down

0 comments on commit fee36fd

Please sign in to comment.