Skip to content

Commit

Permalink
chore: remove unnecessary KeyboardEvent type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbuhmann committed Jan 10, 2023
1 parent 5d5731d commit b41ac97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/angular/src/forms/datepicker/calendar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function () {
dateNavigationService.initializeCalendar();
dateNavigationService.focusedDay = new DayModel(2015, 0, 2);

const upArrowEvent: KeyboardEvent = createKeyboardEvent(Keys.ArrowUp, 'keydown');
const upArrowEvent = createKeyboardEvent(Keys.ArrowUp, 'keydown');

context.clarityDirective.onKeyDown(upArrowEvent);

Expand All @@ -118,7 +118,7 @@ export default function () {
dateNavigationService.initializeCalendar();
dateNavigationService.focusedDay = new DayModel(2014, 11, 25);

const downArrowEvent: KeyboardEvent = createKeyboardEvent(Keys.ArrowDown, 'keydown');
const downArrowEvent = createKeyboardEvent(Keys.ArrowDown, 'keydown');

context.clarityDirective.onKeyDown(downArrowEvent);

Expand All @@ -134,7 +134,7 @@ export default function () {
dateNavigationService.initializeCalendar();
dateNavigationService.focusedDay = new DayModel(2015, 0, 2);

const leftArrowEvent: KeyboardEvent = createKeyboardEvent(Keys.ArrowLeft, 'keydown');
const leftArrowEvent = createKeyboardEvent(Keys.ArrowLeft, 'keydown');

context.clarityDirective.onKeyDown(leftArrowEvent);

Expand All @@ -150,7 +150,7 @@ export default function () {
dateNavigationService.initializeCalendar();
dateNavigationService.focusedDay = new DayModel(2014, 11, 31);

const rightArrowEvent: KeyboardEvent = createKeyboardEvent(Keys.ArrowRight, 'keydown');
const rightArrowEvent = createKeyboardEvent(Keys.ArrowRight, 'keydown');

context.clarityDirective.onKeyDown(rightArrowEvent);

Expand Down

0 comments on commit b41ac97

Please sign in to comment.