Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed timeranges no-index tests because they are invalid now #2627

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions test/unit/utils/time-ranges.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ test('should create a fake single timerange', function(assert){
var tr = createTimeRanges(0, 10);

equal(tr.length, 1, 'length should be 1');
equal(tr.start(), 0, 'works if start is called with no arguments');
equal(tr.end(), 10, 'works if end is called with no arguments');
equal(tr.start(0), 0, 'works if start is called with valid index');
equal(tr.end(0), 10, 'works if end is called with with valid index');
assert.throws(()=>tr.start(1), /Failed to execute 'start'/, 'fails if start is called with an invalid index');
Expand All @@ -25,8 +23,6 @@ test('should create a fake multiple timerange', function(assert){
]);

equal(tr.length, 2, 'length should equal 2');
equal(tr.start(), 0, 'works if start is called with no arguments');
equal(tr.end(), 10, 'works if end is called with no arguments');
equal(tr.start(1), 11, 'works if start is called with valid index');
equal(tr.end(1), 20, 'works if end is called with with valid index');
assert.throws(()=>tr.start(-1), /Failed to execute 'start'/, 'fails if start is called with an invalid index');
Expand Down