@@ -71,6 +71,22 @@ describe('dateutils', function () {
71
71
} ) ;
72
72
73
73
describe ( 'isLTE()' , function ( ) {
74
+ it ( 'a is undefined' , function ( ) {
75
+ const a = undefined ;
76
+ const b = XDate ( 2014 , 1 , 20 ) ;
77
+ expect ( isLTE ( b , a ) ) . toBe ( undefined ) ;
78
+ } ) ;
79
+
80
+ it ( 'b is undefined' , function ( ) {
81
+ const a = XDate ( 2013 , 12 , 31 ) ;
82
+ const b = undefined ;
83
+ expect ( isLTE ( b , a ) ) . toBe ( undefined ) ;
84
+ } ) ;
85
+
86
+ it ( 'both are undefined' , function ( ) {
87
+ expect ( isLTE ( undefined , undefined ) ) . toBe ( undefined ) ;
88
+ } ) ;
89
+
74
90
it ( '2014-01-20 >= 2013-12-31' , function ( ) {
75
91
const a = XDate ( 2013 , 12 , 31 ) ;
76
92
const b = XDate ( 2014 , 1 , 20 ) ;
@@ -98,6 +114,22 @@ describe('dateutils', function () {
98
114
} ) ;
99
115
100
116
describe ( 'isGTE()' , function ( ) {
117
+ it ( 'a is undefined' , function ( ) {
118
+ const a = undefined ;
119
+ const b = XDate ( 2014 , 1 , 20 ) ;
120
+ expect ( isGTE ( b , a ) ) . toBe ( undefined ) ;
121
+ } ) ;
122
+
123
+ it ( 'b is undefined' , function ( ) {
124
+ const a = XDate ( 2013 , 12 , 31 ) ;
125
+ const b = undefined ;
126
+ expect ( isGTE ( b , a ) ) . toBe ( undefined ) ;
127
+ } ) ;
128
+
129
+ it ( 'both are undefined' , function ( ) {
130
+ expect ( isGTE ( undefined , undefined ) ) . toBe ( undefined ) ;
131
+ } ) ;
132
+
101
133
it ( '2014-01-20 >= 2013-12-31' , function ( ) {
102
134
const a = XDate ( 2013 , 12 , 31 ) ;
103
135
const b = XDate ( 2014 , 1 , 20 ) ;
0 commit comments