From 41f55c092085dbf67f4644f66d4a71e30146a562 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Mon, 10 May 2021 09:58:13 +0200 Subject: [PATCH 1/4] test ids --- client/src/lib/views/Create.svelte | 13 ++++++++++--- client/src/routes/note/[id]/[password].svelte | 8 +++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/client/src/lib/views/Create.svelte b/client/src/lib/views/Create.svelte index 4be9386..6813b46 100644 --- a/client/src/lib/views/Create.svelte +++ b/client/src/lib/views/Create.svelte @@ -50,7 +50,8 @@ password: password, id: response.id, } - } catch { + } catch (e) { + console.error(e) error = 'could not create note.' } finally { loading = false @@ -69,6 +70,7 @@ label="share link" value="{window.location.origin}/note/{result.id}/{result.password}" copy + data-testid="note-share-link" />

@@ -84,11 +86,16 @@ {:else}

-