Procházet zdrojové kódy

Add tests to all categories

Ensure all categories have at least one test.
master
TheoryOfNekomata před 1 rokem
rodič
revize
02dc254432
3 změnil soubory, kde provedl 35 přidání a 0 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

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

Načítá se…
Zrušit
Uložit