diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-28 21:54:15 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-28 21:54:15 -0500 |
| commit | 810ebb811c40b50ddb95bb9559d7515f46ec2052 (patch) | |
| tree | 993abbd49907b399af933a44fb40e2e88c6933a5 /ui/tests/lib/components/LogIn.svelte.test.js | |
| parent | d23685c0ea46c92c75d43b6d6a361597241dd95e (diff) | |
| parent | 5ce6c9f6277c43caf7413cce255af7bdc947e74c (diff) | |
Merge branch 'main' into wip/stylize
Diffstat (limited to 'ui/tests/lib/components/LogIn.svelte.test.js')
| -rw-r--r-- | ui/tests/lib/components/LogIn.svelte.test.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/tests/lib/components/LogIn.svelte.test.js b/ui/tests/lib/components/LogIn.svelte.test.js new file mode 100644 index 0000000..b64d846 --- /dev/null +++ b/ui/tests/lib/components/LogIn.svelte.test.js @@ -0,0 +1,22 @@ +import { flushSync, mount, unmount } from 'svelte'; +import { afterEach, beforeEach, describe, expect, test } from 'vitest'; +import LogIn from '$lib/components/LogIn.svelte'; + +let component; + +describe('LogIn', () => { + beforeEach(() => { + component = mount(LogIn, { + target: document.body // `document` exists because of jsdom + }); + flushSync(); + }); + + afterEach(() => { + unmount(component); + }); + + test('mounts', async () => { + expect(component).toBeTruthy(); + }); +}); |
