summaryrefslogtreecommitdiff
path: root/ui/tests/lib/components/ActiveChannel.svelte.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tests/lib/components/ActiveChannel.svelte.test.js')
-rw-r--r--ui/tests/lib/components/ActiveChannel.svelte.test.js22
1 files changed, 22 insertions, 0 deletions
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();
+ });
+});