From 02dc25443257bcf527b097ed09301f4539db728c Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sun, 3 Sep 2023 20:36:09 +0800 Subject: [PATCH] Add tests to all categories Ensure all categories have at least one test. --- .../web/color/react/src/web-color-react.test.ts | 11 +++++++++++ .../formatted/react/src/web-formatted-react.test.ts | 13 +++++++++++++ .../temporal/react/src/web-temporal-react.test.ts | 11 +++++++++++ 3 files changed, 35 insertions(+) create mode 100644 categories/web/color/react/src/web-color-react.test.ts create mode 100644 categories/web/formatted/react/src/web-formatted-react.test.ts create mode 100644 categories/web/temporal/react/src/web-temporal-react.test.ts diff --git a/categories/web/color/react/src/web-color-react.test.ts b/categories/web/color/react/src/web-color-react.test.ts new file mode 100644 index 0000000..7a2a466 --- /dev/null +++ b/categories/web/color/react/src/web-color-react.test.ts @@ -0,0 +1,11 @@ +import { describe, it, expect } from 'vitest'; +import * as WebColorReact from '.'; + +describe('web-color-react', () => { + it.each([ + 'ColorPicker', + 'Swatch', + ])('exports %s', (namedExport) => { + expect(WebColorReact).toHaveProperty(namedExport); + }); +}); diff --git a/categories/web/formatted/react/src/web-formatted-react.test.ts b/categories/web/formatted/react/src/web-formatted-react.test.ts new file mode 100644 index 0000000..addd0c4 --- /dev/null +++ b/categories/web/formatted/react/src/web-formatted-react.test.ts @@ -0,0 +1,13 @@ +import { describe, it, expect } from 'vitest'; +import * as WebFormattedReact from '.'; + +describe('web-formatted-react', () => { + it.each([ + 'EmailInput', + 'PatternTextInput', + 'PhoneNumberInput', + 'UrlInput', + ])('exports %s', (namedExport) => { + expect(WebFormattedReact).toHaveProperty(namedExport); + }); +}); diff --git a/categories/web/temporal/react/src/web-temporal-react.test.ts b/categories/web/temporal/react/src/web-temporal-react.test.ts new file mode 100644 index 0000000..7be88b7 --- /dev/null +++ b/categories/web/temporal/react/src/web-temporal-react.test.ts @@ -0,0 +1,11 @@ +import { describe, it, expect } from 'vitest'; +import * as WebTemporalReact from '.'; + +describe('web-temporal-react', () => { + it.each([ + 'DateDropdown', + 'TimeSpinner', + ])('exports %s', (namedExport) => { + expect(WebTemporalReact).toHaveProperty(namedExport); + }); +});