@@ -49,17 +49,17 @@ describe('Time scale tests', function() {
4949 } ) ;
5050 } ) ;
5151
52- it ( 'Should load moment.js as a dependency' , function ( ) {
52+ it ( 'should load moment.js as a dependency' , function ( ) {
5353 expect ( window . moment ) . not . toBe ( undefined ) ;
5454 } ) ;
5555
56- it ( 'Should register the constructor with the scale service' , function ( ) {
56+ it ( 'should register the constructor with the scale service' , function ( ) {
5757 var Constructor = Chart . scaleService . getScaleConstructor ( 'time' ) ;
5858 expect ( Constructor ) . not . toBe ( undefined ) ;
5959 expect ( typeof Constructor ) . toBe ( 'function' ) ;
6060 } ) ;
6161
62- it ( 'Should have the correct default config' , function ( ) {
62+ it ( 'should have the correct default config' , function ( ) {
6363 var defaultConfig = Chart . scaleService . getScaleDefaults ( 'time' ) ;
6464 expect ( defaultConfig ) . toEqual ( {
6565 display : true ,
@@ -372,7 +372,7 @@ describe('Time scale tests', function() {
372372 config . time . min = '2014-12-29T04:00:00' ;
373373
374374 var scale = createScale ( mockData , config ) ;
375- expect ( scale . ticks [ 0 ] . value ) . toEqual ( 'Dec 28 ' ) ;
375+ expect ( scale . ticks [ 0 ] . value ) . toEqual ( 'Dec 29 ' ) ;
376376 } ) ;
377377
378378 it ( 'should use the max option' , function ( ) {
@@ -381,11 +381,11 @@ describe('Time scale tests', function() {
381381
382382 var scale = createScale ( mockData , config ) ;
383383
384- expect ( scale . ticks [ scale . ticks . length - 1 ] . value ) . toEqual ( 'Jan 6 ' ) ;
384+ expect ( scale . ticks [ scale . ticks . length - 1 ] . value ) . toEqual ( 'Jan 5 ' ) ;
385385 } ) ;
386386 } ) ;
387387
388- it ( 'Should use the isoWeekday option' , function ( ) {
388+ it ( 'should use the isoWeekday option' , function ( ) {
389389 var mockData = {
390390 labels : [
391391 '2015-01-01T20:00:00' , // Thursday
@@ -478,7 +478,7 @@ describe('Time scale tests', function() {
478478 var step = xScale . ticks [ 1 ] . time - xScale . ticks [ 0 ] . time ;
479479 var stepsAmount = Math . floor ( ( xScale . max - xScale . min ) / step ) ;
480480
481- it ( 'should be bounded by nearest step year starts ' , function ( ) {
481+ it ( 'should be bounded by nearest step\'s year start and end ' , function ( ) {
482482 expect ( xScale . getValueForPixel ( xScale . left ) ) . toBeCloseToTime ( {
483483 value : moment ( xScale . min ) . startOf ( 'year' ) ,
484484 unit : 'hour' ,
0 commit comments