diff --git a/src/__tests__/helpers/to-formatters.test.ts b/src/__tests__/helpers/to-formatters.test.ts index 4ec707b5..ff234a61 100644 --- a/src/__tests__/helpers/to-formatters.test.ts +++ b/src/__tests__/helpers/to-formatters.test.ts @@ -1,14 +1,14 @@ -import { expect } from '@open-wc/testing'; +import { describe, expect, it } from 'vitest'; import { toFormatters } from '../../helpers/to-formatters'; import type { Formatters } from '../../typings'; describe(toFormatters.name, () => { it('returns formatters', () => { - const testLocale = 'en-US'; - const result = toFormatters(testLocale); + const locale = 'en-US'; + const result = toFormatters(locale); - expect(result).haveOwnProperty('locale', testLocale); + expect(result).toHaveProperty('locale', locale); const props: (keyof Omit)[] = [ 'dateFormat', @@ -23,7 +23,7 @@ describe(toFormatters.name, () => { props.forEach( n => - expect(result).haveOwnProperty(n) + expect(result).toHaveProperty(n) ); }); diff --git a/vite.config.ts b/vite.config.ts index d55605e8..94f2c1f5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,6 +34,7 @@ export default defineConfig({ '**/*test*/helpers/to-closest-target.test.ts', '**/*test*/helpers/to-date-string.test.ts', '**/*test*/helpers/to-day-diff-inclusive.test.ts', + '**/*test*/helpers/to-formatters.test.ts', // '**/*test*/date-picker-input/**.test.ts', ], clearMocks: true,