A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: update test snapshots
Abdullah Attaea07672a2db8
diff --git a/apps/web/__e2e__/notes.test.ts-snapshots/export-html-Chromium-linux.txt b/apps/web/__e2e__/notes.test.ts-snapshots/export-html-Chromium-linux.txtindex 69f5d5dfa..50dd65724 100644--- a/apps/web/__e2e__/notes.test.ts-snapshots/export-html-Chromium-linux.txt+++ b/apps/web/__e2e__/notes.test.ts-snapshots/export-html-Chromium-linux.txt@@ -7,13 +7,13 @@name="description"content="This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1"/>- <title>Test 1 - Notesnook</title>+ <title>Test 1 - Notesnook</title>+ <meta name="created-on" content="1669202032300" />+ <meta name="last-edited-on" content="1669202033184" />+</head><body><h1>Test 1</h1><p dir="ltr" data-spacing="double">This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>- <br/>- Created on: <b>xxx</b><br/>- Edited on: <b>xxx</b></body></html>diff --git a/apps/web/__e2e__/notes.test.ts-snapshots/export-md-Chromium-linux.txt b/apps/web/__e2e__/notes.test.ts-snapshots/export-md-Chromium-linux.txtindex e479a1902..ef91db9ea 100644--- a/apps/web/__e2e__/notes.test.ts-snapshots/export-md-Chromium-linux.txt+++ b/apps/web/__e2e__/notes.test.ts-snapshots/export-md-Chromium-linux.txt@@ -5,6 +5,3 @@ This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1----_Created on: xxx_--_Edited on: xxx_\ No newline at end of filediff --git a/apps/web/__e2e__/notes.test.ts-snapshots/export-txt-Chromium-linux.txt b/apps/web/__e2e__/notes.test.ts-snapshots/export-txt-Chromium-linux.txtindex 6c39fd390..aa657e922 100644--- a/apps/web/__e2e__/notes.test.ts-snapshots/export-txt-Chromium-linux.txt+++ b/apps/web/__e2e__/notes.test.ts-snapshots/export-txt-Chromium-linux.txt@@ -4,5 +4,4 @@ Test 1This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1-----------Created on: xxx-Edited on: xxx\ No newline at end of file+Tags:\ No newline at end of filediff --git a/apps/web/src/common/export.ts b/apps/web/src/common/export.tsindex f895212aa..d437f90af 100644--- a/apps/web/src/common/export.ts+++ b/apps/web/src/common/export.ts@@ -56,7 +56,9 @@ export async function exportNotes(if (format === "pdf") {const note = db.notes?.note(noteIds[0]);if (!note) return false;- return await exportToPDF(note.title, await note.export("html", null));+ const html = await note.export("html", null);+ if (!html) return false;+ return await exportToPDF(note.title, html);}const files = [];@@ -70,7 +72,7 @@ export async function exportNotes(text: `Exporting "${note.title}"...`});console.log("Exporting", note.title);- const content: string = await note.export(format, null).catch((e) => {+ const content = await note.export(format, null).catch((e) => {showToast("error", e.message);});if (!content) continue;