diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..cc86333 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,16 @@ +name: test + +on: + workflow_dispatch: + +jobs: + text: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install + run: | + docker compose build + npm ci + npm run test:run 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}

-