Skip to content

Commit

Permalink
Fixed type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil1793 committed Oct 26, 2023
1 parent 1cce25c commit 9c81abe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/web-components/src/utils/date-utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('validate', () => {
describe('NaN validation', () => {
it('indicates when the year is NaN', () => {
const memorableDateComponent = {} as Components.VaMemorableDate;
const year = '1999n';
const year = NaN;
const month = 1;
const day = 1;
const yearTouched = true;
Expand Down Expand Up @@ -134,7 +134,7 @@ describe('validate', () => {
it('validates month when empty', () => {
const memorableDateComponent = {} as Components.VaMemorableDate;
const year = 1999;
const month = '';
const month = null;
const day = 1;
const monthTouched = true;

Expand All @@ -150,7 +150,7 @@ describe('validate', () => {
const memorableDateComponent = {} as Components.VaMemorableDate;
const year = 1999;
const month = 1;
const day = '';
const day = null;
const dayTouched = true;

validate({ component: memorableDateComponent, year, month, day, dayTouched });
Expand All @@ -163,7 +163,7 @@ describe('validate', () => {

it('validates year when empty', () => {
const memorableDateComponent = {} as Components.VaMemorableDate;
const year = '';
const year = null;
const month = 1;
const day = 1;
const yearTouched = true;
Expand Down

0 comments on commit 9c81abe

Please sign in to comment.