summaryrefslogtreecommitdiff
path: root/ui/tests/lib/components/LogIn.svelte.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tests/lib/components/LogIn.svelte.test.js')
-rw-r--r--ui/tests/lib/components/LogIn.svelte.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/tests/lib/components/LogIn.svelte.test.js b/ui/tests/lib/components/LogIn.svelte.test.js
index 00abb5c..0835870 100644
--- a/ui/tests/lib/components/LogIn.svelte.test.js
+++ b/ui/tests/lib/components/LogIn.svelte.test.js
@@ -31,4 +31,11 @@ describe('LogIn', async () => {
'my very creative and long password',
);
});
+
+ it('sends empty strings before being populated', async () => {
+ const signIn = screen.getByRole('button');
+ await user.click(signIn);
+
+ expect(mocks.logIn).toHaveBeenCalledExactlyOnceWith('', '');
+ });
});