Przeglądaj źródła

Add tests to all categories

Ensure all categories have at least one test.
master
TheoryOfNekomata 8 miesięcy temu
rodzic
commit
02dc254432
3 zmienionych plików z 35 dodań i 0 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz