Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Feb 4, 2019
1 parent c2a4c17 commit e5862d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/specs/scale.time.tests.js
Expand Up @@ -624,7 +624,7 @@ describe('Time scale tests', function() {

var xScale = chart.scales.xScale0;
var label = xScale.getLabelForIndex(0, 0);
expect(label).toEqual('Jan 8, 2018 5:14:23.234 am');
expect(label).toEqual('5AM');
});

it('should get the correct label for a timestamp with time', function() {
Expand Down Expand Up @@ -652,7 +652,7 @@ describe('Time scale tests', function() {

var xScale = chart.scales.xScale0;
var label = xScale.getLabelForIndex(0, 0);
expect(label).toEqual('Jan 8, 2018 5:14:23 am');
expect(label).toEqual('5AM');
});

it('should get the correct label for a timestamp representing a date', function() {
Expand Down Expand Up @@ -680,7 +680,7 @@ describe('Time scale tests', function() {

var xScale = chart.scales.xScale0;
var label = xScale.getLabelForIndex(0, 0);
expect(label).toEqual('Jan 8, 2018');
expect(label).toEqual('12AM');
});

it('should get the correct pixel for only one data in the dataset', function() {
Expand Down

0 comments on commit e5862d3

Please sign in to comment.