web: update test snapshots

This commit is contained in:
Abdullah Atta
2022-11-23 16:17:27 +05:00
parent 222fc00bd7
commit ea07672a2d
4 changed files with 9 additions and 11 deletions

View File

@@ -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>

View File

@@ -5,6 +5,3 @@ This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1
---
_Created on: xxx_
_Edited on: xxx_

View File

@@ -4,5 +4,4 @@ Test 1
This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1
----------
Created on: xxx
Edited on: xxx
Tags:

View File

@@ -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;