Skip to content

Commit

Permalink
import missing dayjs utc plugin in date input tests
Browse files Browse the repository at this point in the history
  • Loading branch information
powerpaul17 committed May 24, 2024
1 parent 40287cc commit 838c31f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DateInput.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {

import dayjs from 'dayjs';
import localizedFormat from 'dayjs/plugin/localizedFormat';
import utc from 'dayjs/plugin/utc';

import DateInput from './DateInput.vue';

Expand Down Expand Up @@ -74,6 +75,7 @@ describe('DateInput', () => {
emitted: () => void;
} {
dayjs.extend(localizedFormat);
dayjs.extend(utc);

if (options?.locale) {
import.meta.glob('../../node_modules/dayjs/locale/*.js', { eager: true });
Expand Down

0 comments on commit 838c31f

Please sign in to comment.