Sfoglia il codice sorgente

Add tests to all categories

Ensure all categories have at least one test.
master
parent
commit
02dc254432
3 ha cambiato i file con 35 aggiunte e 0 eliminazioni
  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 Vedi 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 Vedi 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 Vedi 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);
});
});

Caricamento…
Annulla
Salva