From a5945c50c41a0a41104a0c28ad1279ea3f9255f9 Mon Sep 17 00:00:00 2001 From: Kit La Touche Date: Fri, 15 Nov 2024 22:45:53 -0500 Subject: Ratchet up coverage Just basic "will it mount?" tests for more components. --- .../lib/components/ActiveChannel.svelte.test.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ui/tests/lib/components/ActiveChannel.svelte.test.js (limited to 'ui/tests/lib/components/ActiveChannel.svelte.test.js') diff --git a/ui/tests/lib/components/ActiveChannel.svelte.test.js b/ui/tests/lib/components/ActiveChannel.svelte.test.js new file mode 100644 index 0000000..34e92d3 --- /dev/null +++ b/ui/tests/lib/components/ActiveChannel.svelte.test.js @@ -0,0 +1,22 @@ +import { flushSync, mount, unmount } from 'svelte'; +import { afterEach, beforeEach, describe, expect, test } from 'vitest'; +import ActiveChannel from '$lib/components/ActiveChannel.svelte'; + +let component; + +describe('ActiveChannel', () => { + beforeEach(() => { + component = mount(ActiveChannel, { + target: document.body, // `document` exists because of jsdom + }); + flushSync(); + }); + + afterEach(() => { + unmount(component); + }); + + test('mounts', async () => { + expect(component).toBeTruthy(); + }); +}); -- cgit v1.2.3