@@ -4,7 +4,7 @@ const dateFormat = require('./../lib/dateformat');
44
55const dayNamesShort = [ 'Sun' , 'Mon' , 'Tue' , 'Wed' , 'Thu' , 'Fri' , 'Sat' ] ;
66const dayNamesLong = [ 'Sunday' , 'Monday' , 'Tuesday' , 'Wednesday' , 'Thursday' , 'Friday' , 'Saturday' ] ;
7- const threeDays = [ 'Yesterday' , 'Today' , 'Tomorrow' , 'Yes ' , 'Tod ' , 'Tom ' ] ;
7+ const threeDays = [ 'Yesterday' , 'Today' , 'Tomorrow' , 'Ysd ' , 'Tdy ' , 'Tmw ' ] ;
88
99describe ( 'threeDays' , function ( ) {
1010 let date , DDD , DDDD ;
@@ -17,20 +17,20 @@ describe('threeDays', function () {
1717 assert . strictEqual ( DDDD , "Yesterday" ) ;
1818 done ( ) ;
1919 } ) ;
20- it ( 'should return "Yes " (Today - 1 day)' , function ( done ) {
20+ it ( 'should return "Ysd " (Today - 1 day)' , function ( done ) {
2121 date . setDate ( date . getDate ( ) - 1 ) ;
2222 DDD = dateFormat ( date , 'DDD' ) ;
23- assert . strictEqual ( DDD , "Yes " ) ;
23+ assert . strictEqual ( DDD , "Ysd " ) ;
2424 done ( ) ;
2525 } ) ;
2626 it ( 'should return "Today" (Today)' , function ( done ) {
2727 DDDD = dateFormat ( date , 'DDDD' ) ;
2828 assert . strictEqual ( DDDD , "Today" ) ;
2929 done ( ) ;
3030 } ) ;
31- it ( 'should return "Tod " (Today)' , function ( done ) {
31+ it ( 'should return "Tdy " (Today)' , function ( done ) {
3232 DDD = dateFormat ( date , 'DDD' ) ;
33- assert . strictEqual ( DDD , "Tod " ) ;
33+ assert . strictEqual ( DDD , "Tdy " ) ;
3434 done ( ) ;
3535 } ) ;
3636 it ( 'should return "Tomorrow" (Today + 1 day)' , function ( done ) {
@@ -39,21 +39,21 @@ describe('threeDays', function () {
3939 assert . strictEqual ( DDDD , "Tomorrow" ) ;
4040 done ( ) ;
4141 } ) ;
42- it ( 'should return "Tom " (Today + 1 day)' , function ( done ) {
42+ it ( 'should return "Tmw " (Today + 1 day)' , function ( done ) {
4343 date . setDate ( date . getDate ( ) + 1 ) ;
4444 DDD = dateFormat ( date , 'DDD' ) ;
45- assert . strictEqual ( DDD , "Tom " ) ;
45+ assert . strictEqual ( DDD , "Tmw " ) ;
4646 done ( ) ;
4747 } ) ;
48- it ( 'should not return "Yesterday", "Today", "Tomorrow", "Yes ", "Tod ", or "Tom " (Today - 2 days)' , function ( done ) {
48+ it ( 'should not return "Yesterday", "Today", "Tomorrow", "Ysd ", "Tdy ", or "Tmw " (Today - 2 days)' , function ( done ) {
4949 date . setDate ( date . getDate ( ) - 2 ) ;
5050 DDD = dateFormat ( date , 'DDD' ) ;
5151 DDDD = dateFormat ( date , 'DDDD' ) ;
5252 assert . strictEqual ( threeDays . indexOf ( DDD ) , - 1 ) ;
5353 assert . strictEqual ( threeDays . indexOf ( DDDD ) , - 1 ) ;
5454 done ( ) ;
5555 } ) ;
56- it ( 'should not return "Yesterday", "Today" or "Tomorrow", "Yes ", "Tod ", or "Tom " (Today + 2 days)' , function ( done ) {
56+ it ( 'should not return "Yesterday", "Today" or "Tomorrow", "Ysd ", "Tdy ", or "Tmw " (Today + 2 days)' , function ( done ) {
5757 date . setDate ( date . getDate ( ) + 2 ) ;
5858 DDD = dateFormat ( date , 'DDD' ) ;
5959 DDDD = dateFormat ( date , 'DDDD' ) ;
0 commit comments