Skip to content

Commit

Permalink
#GOCLD 2298 test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
preetigairi committed Mar 12, 2024
1 parent e191a7e commit ba421d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ describe('LocaleFormat', () => {
dec.toUTCString() + ' is not a valid date'
);
});
it('should return true for a leap year date', () => {
it('should return false for a non leap year date', () => {
const nonLeapYear: Date = new Date(2021, 1, 29);
expect(LocaleFormat.validDate(nonLeapYear.getMonth(), nonLeapYear.getDate(), nonLeapYear.getFullYear())).toBeTruthy(
nonLeapYear.toUTCString() + ' is not a valid date'
)});

it('should return false for a non leap year date', () => {
it('should return true for a leap year date', () => {
const leapYear: Date = new Date(2020, 1, 29);
expect(LocaleFormat.validDate(leapYear.getMonth(), leapYear.getDate(), leapYear.getFullYear())).toBeTruthy(
leapYear.toUTCString() + ' is a valid date'
Expand Down

0 comments on commit ba421d3

Please sign in to comment.