Skip to content

Commit

Permalink
require sinon explicitely in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tchakabam committed Jun 8, 2018
1 parent 2b6623a commit 224254a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/mocks/hls.mock.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Hls from '../../src/hls';

const sinon = require('sinon');

/**
* All public methods of Hls instance
*/
Expand Down
5 changes: 4 additions & 1 deletion tests/unit/controller/eme-controller.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import EMEController from '../../../src/controller/eme-controller';
import assert from 'assert';
import HlsMock from '../../mocks/hls.mock';
import EventEmitter from 'events';
import { ErrorTypes, ErrorDetails } from '../../../src/errors';

const sinon = require('sinon');

import assert from 'assert';

const MediaMock = function () {
let media = new EventEmitter();
media.setMediaKeys = sinon.spy();
Expand Down

0 comments on commit 224254a

Please sign in to comment.