Files
skeleton/packages/skeleton/src/lib/components/ProgressRadial/ProgressRadial.test.ts
Chris Simmons 3a30de270b Merge fore release 10/10 (#2130)
Co-authored-by: Mahmoud Zino <74062808+Mahmoud-zino@users.noreply.github.com>
Co-authored-by: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com>
Co-authored-by: Edrich Hans Chua <edrich@xendit.co>
Co-authored-by: A̴m̴r̴ ع̲مِےـرۅ <akkk33@protonmail.com>
Co-authored-by: Jordan Watts <91865823+jwatts777@users.noreply.github.com>
Co-authored-by: Hugo Korte <63101006+Hugos68@users.noreply.github.com>
Co-authored-by: Aaron Crockett <aaron.crockett.00@gmail.com>
2023-10-10 10:51:55 -05:00

28 lines
806 B
TypeScript

import { render } from '@testing-library/svelte';
import { describe, it, expect } from 'vitest';
import ProgressRadial from '$lib/components/ProgressRadial/ProgressRadial.svelte';
describe('ProgressRadial.svelte', () => {
it('Renders with minimal props', async () => {
const { getByTestId } = render(ProgressRadial);
expect(getByTestId('progress-radial')).toBeTruthy();
});
it('Renders with all props', () => {
const { getByTestId } = render(ProgressRadial, {
props: {
value: 50,
stroke: 20,
track: 'stroke-surface-300 dark:stroke-surface-700',
meter: 'stroke-black dark:stroke-white',
color: 'fill-black dark:fill-white',
font: 56,
label: 'testProgressRadial1',
roundedLineCap: true
}
});
expect(getByTestId('progress-radial')).toBeTruthy();
});
});