Browse Source

Add tests to all categories

Ensure all categories have at least one test.
master
TheoryOfNekomata 1 year ago
parent
commit
02dc254432
3 changed files with 35 additions and 0 deletions
  1. +11
    -0
      categories/web/color/react/src/web-color-react.test.ts
  2. +13
    -0
      categories/web/formatted/react/src/web-formatted-react.test.ts
  3. +11
    -0
      categories/web/temporal/react/src/web-temporal-react.test.ts

+ 11
- 0
categories/web/color/react/src/web-color-react.test.ts View File

@@ -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);
});
});

+ 13
- 0
categories/web/formatted/react/src/web-formatted-react.test.ts View File

@@ -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);
});
});

+ 11
- 0
categories/web/temporal/react/src/web-temporal-react.test.ts View File

@@ -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);
});
});

Loading…
Cancel
Save