mirror of
https://github.com/LukeHagar/skeleton.git
synced 2025-12-06 12:47:44 +00:00
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>
28 lines
806 B
TypeScript
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();
|
|
});
|
|
});
|