Skip to content

Commit

Permalink
Add additional asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Sep 19, 2019
1 parent b545e16 commit bdab40f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/specs/scale.time.tests.js
Expand Up @@ -764,6 +764,7 @@ describe('Time scale tests', function() {

expect(scale.ticks.length).toEqual(61);
expect(scale.ticks[0]).toEqual('[[8:00 pm]]');
expect(scale.ticks[Math.floor(scale.ticks.length / 2)]).toEqual('(8:00:30 pm)');
expect(scale.ticks[scale.ticks.length - 1]).toEqual('[[8:01 pm]]');
});

Expand Down Expand Up @@ -797,6 +798,7 @@ describe('Time scale tests', function() {
chart.update();
expect(scale.ticks.length).toEqual(61);
expect(scale.ticks[0]).toEqual('[[8:00 pm]]');
expect(scale.ticks[Math.floor(scale.ticks.length / 2)]).toEqual('<8:00:30 pm>');
expect(scale.ticks[scale.ticks.length - 1]).toEqual('[[8:01 pm]]');
});
});
Expand Down

0 comments on commit bdab40f

Please sign in to comment.