@@ -6,7 +6,7 @@ describe('datepicker directive', function () {
6
6
beforeEach ( inject ( function ( _$compile_ , _$rootScope_ ) {
7
7
$compile = _$compile_ ;
8
8
$rootScope = _$rootScope_ ;
9
- $rootScope . date = new Date ( " September 30, 2010 15:30:00" ) ;
9
+ $rootScope . date = new Date ( ' September 30, 2010 15:30:00' ) ;
10
10
} ) ) ;
11
11
12
12
function getTitle ( ) {
@@ -502,7 +502,7 @@ describe('datepicker directive', function () {
502
502
503
503
describe ( 'min attribute' , function ( ) {
504
504
beforeEach ( function ( ) {
505
- $rootScope . mindate = new Date ( " September 12, 2010" ) ;
505
+ $rootScope . mindate = new Date ( ' September 12, 2010' ) ;
506
506
element = $compile ( '<datepicker ng-model="date" min="mindate"></datepicker>' ) ( $rootScope ) ;
507
507
$rootScope . $digest ( ) ;
508
508
} ) ;
@@ -516,7 +516,7 @@ describe('datepicker directive', function () {
516
516
} ) ;
517
517
518
518
it ( 'disables appropriate days when min date changes' , function ( ) {
519
- $rootScope . mindate = new Date ( " September 5, 2010" ) ;
519
+ $rootScope . mindate = new Date ( ' September 5, 2010' ) ;
520
520
$rootScope . $digest ( ) ;
521
521
for ( var i = 0 ; i < 5 ; i ++ ) {
522
522
for ( var j = 0 ; j < 7 ; j ++ ) {
@@ -526,8 +526,8 @@ describe('datepicker directive', function () {
526
526
} ) ;
527
527
528
528
it ( 'invalidates when model is a disabled date' , function ( ) {
529
- $rootScope . mindate = new Date ( " September 5, 2010" ) ;
530
- $rootScope . date = new Date ( " September 2, 2010" ) ;
529
+ $rootScope . mindate = new Date ( ' September 5, 2010' ) ;
530
+ $rootScope . date = new Date ( ' September 2, 2010' ) ;
531
531
$rootScope . $digest ( ) ;
532
532
expect ( element . hasClass ( 'ng-invalid' ) ) . toBeTruthy ( ) ;
533
533
expect ( element . hasClass ( 'ng-invalid-date-disabled' ) ) . toBeTruthy ( ) ;
@@ -582,7 +582,7 @@ describe('datepicker directive', function () {
582
582
583
583
it ( 'enables everything before if it is cleared' , function ( ) {
584
584
$rootScope . mindate = null ;
585
- $rootScope . date = new Date ( " December 20, 1949" ) ;
585
+ $rootScope . date = new Date ( ' December 20, 1949' ) ;
586
586
$rootScope . $digest ( ) ;
587
587
588
588
clickTitleButton ( ) ;
@@ -597,7 +597,7 @@ describe('datepicker directive', function () {
597
597
598
598
describe ( 'max attribute' , function ( ) {
599
599
beforeEach ( function ( ) {
600
- $rootScope . maxdate = new Date ( " September 25, 2010" ) ;
600
+ $rootScope . maxdate = new Date ( ' September 25, 2010' ) ;
601
601
element = $compile ( '<datepicker ng-model="date" max="maxdate"></datepicker>' ) ( $rootScope ) ;
602
602
$rootScope . $digest ( ) ;
603
603
} ) ;
@@ -611,7 +611,7 @@ describe('datepicker directive', function () {
611
611
} ) ;
612
612
613
613
it ( 'disables appropriate days when max date changes' , function ( ) {
614
- $rootScope . maxdate = new Date ( " September 18, 2010" ) ;
614
+ $rootScope . maxdate = new Date ( ' September 18, 2010' ) ;
615
615
$rootScope . $digest ( ) ;
616
616
for ( var i = 0 ; i < 5 ; i ++ ) {
617
617
for ( var j = 0 ; j < 7 ; j ++ ) {
@@ -621,7 +621,7 @@ describe('datepicker directive', function () {
621
621
} ) ;
622
622
623
623
it ( 'invalidates when model is a disabled date' , function ( ) {
624
- $rootScope . maxdate = new Date ( " September 18, 2010" ) ;
624
+ $rootScope . maxdate = new Date ( ' September 18, 2010' ) ;
625
625
$rootScope . $digest ( ) ;
626
626
expect ( element . hasClass ( 'ng-invalid' ) ) . toBeTruthy ( ) ;
627
627
expect ( element . hasClass ( 'ng-invalid-date-disabled' ) ) . toBeTruthy ( ) ;
@@ -912,7 +912,7 @@ describe('datepicker directive', function () {
912
912
} ) ;
913
913
914
914
describe ( '`isDisabled` function' , function ( ) {
915
- var date = new Date ( " September 30, 2010 15:30:00" ) ;
915
+ var date = new Date ( ' September 30, 2010 15:30:00' ) ;
916
916
917
917
it ( 'to return false if no limit is set' , function ( ) {
918
918
expect ( ctrl . isDisabled ( date , 0 ) ) . toBeFalsy ( ) ;
@@ -964,7 +964,7 @@ describe('datepicker directive', function () {
964
964
describe ( '' , function ( ) {
965
965
beforeEach ( inject ( function ( _$document_ , $sniffer ) {
966
966
$document = _$document_ ;
967
- $rootScope . date = new Date ( " September 30, 2010 15:30:00" ) ;
967
+ $rootScope . date = new Date ( ' September 30, 2010 15:30:00' ) ;
968
968
var wrapElement = $compile ( '<div><input ng-model="date" datepicker-popup><div>' ) ( $rootScope ) ;
969
969
$rootScope . $digest ( ) ;
970
970
assignElements ( wrapElement ) ;
@@ -1014,7 +1014,7 @@ describe('datepicker directive', function () {
1014
1014
} ) ;
1015
1015
1016
1016
it ( 'updates the input correctly when model changes' , function ( ) {
1017
- $rootScope . date = new Date ( " January 10, 1983 10:00:00" ) ;
1017
+ $rootScope . date = new Date ( ' January 10, 1983 10:00:00' ) ;
1018
1018
$rootScope . $digest ( ) ;
1019
1019
expect ( inputEl . val ( ) ) . toBe ( '1983-01-10' ) ;
1020
1020
} ) ;
@@ -1124,7 +1124,7 @@ describe('datepicker directive', function () {
1124
1124
} ) ;
1125
1125
1126
1126
it ( 'updates the input correctly when model changes' , function ( ) {
1127
- $rootScope . date = new Date ( " January 10, 1983 10:00:00" ) ;
1127
+ $rootScope . date = new Date ( ' January 10, 1983 10:00:00' ) ;
1128
1128
$rootScope . $digest ( ) ;
1129
1129
expect ( inputEl . val ( ) ) . toBe ( '10-January-1983' ) ;
1130
1130
} ) ;
@@ -1149,7 +1149,7 @@ describe('datepicker directive', function () {
1149
1149
} ) ;
1150
1150
1151
1151
it ( 'updates the input correctly when model changes' , function ( ) {
1152
- $rootScope . date = new Date ( " August 11, 2013 09:09:00" ) ;
1152
+ $rootScope . date = new Date ( ' August 11, 2013 09:09:00' ) ;
1153
1153
$rootScope . $digest ( ) ;
1154
1154
expect ( inputEl . val ( ) ) . toBe ( '11-August-2013' ) ;
1155
1155
} ) ;
0 commit comments