mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
web: update test snapshots
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -5,6 +5,3 @@ This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1
|
||||
|
||||
---
|
||||
|
||||
_Created on: xxx_
|
||||
|
||||
_Edited on: xxx_
|
||||
@@ -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:
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user