-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2027 from Orange-OpenSource/add_config_test_Segme…
…ntBaseLoader SegmentBaseLoader tests
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import SegmentBaseLoader from '../../src/dash/SegmentBaseLoader'; | ||
|
||
const expect = require('chai').expect; | ||
|
||
const context = {}; | ||
const segmentBaseLoader = SegmentBaseLoader(context).getInstance(); | ||
|
||
describe('SegmentBaseLoader', function () { | ||
it("should throw an exception when attempting to call loadInitialization While the setConfig function was not called, and parameters are undefined", function () { | ||
expect(segmentBaseLoader.loadInitialization.bind(segmentBaseLoader)).to.throw('setConfig function has to be called previously'); | ||
}); | ||
|
||
it("should throw an exception when attempting to call loadSegments While the setConfig function was not called, and parameters are undefined", function () { | ||
expect(segmentBaseLoader.loadSegments.bind(segmentBaseLoader)).to.throw('setConfig function has to be called previously'); | ||
}); | ||
}); |