Commit e2e5116 1 parent 2836fe5 commit e2e5116 Copy full SHA for e2e5116
File tree 2 files changed +0
-9
lines changed
2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -92,10 +92,6 @@ class Dayjs {
92
92
return ! ( this . $d . toString ( ) === 'Invalid Date' )
93
93
}
94
94
95
- isLeapYear ( ) {
96
- return ( ( this . $y % 4 === 0 ) && ( this . $y % 100 !== 0 ) ) || ( this . $y % 400 === 0 )
97
- }
98
-
99
95
$compare ( that ) {
100
96
return this . valueOf ( ) - dayjs ( that ) . valueOf ( )
101
97
}
Original file line number Diff line number Diff line change @@ -12,11 +12,6 @@ afterEach(() => {
12
12
13
13
const testArr = [ dayjs , moment ]
14
14
15
- it ( 'IsLeapYear' , ( ) => {
16
- expect ( dayjs ( '20000101' ) . isLeapYear ( ) ) . toBe ( true )
17
- expect ( dayjs ( '2100-01-01' ) . isLeapYear ( ) ) . toBe ( false )
18
- } )
19
-
20
15
describe ( 'Is Before Is After Is Same' , ( ) => {
21
16
it ( 'Compare to dayjs object' , ( ) => {
22
17
testArr . forEach ( ( instance ) => {
You can’t perform that action at this time.
0 commit comments