fix(tests): fix tests and linting

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2024-09-26 18:32:54 +02:00
parent 4250f4458b
commit b44f395852
3 changed files with 37 additions and 4 deletions

View file

@ -14,3 +14,34 @@ exports[`RevisionsService purgeRevisions purges the revision history 1`] = `
+new content
"
`;
exports[`RevisionsService removeOldRevisions remove a part of old revisions 1`] = `
"Index: test-note
===================================================================
--- test-note
+++ test-note
@@ -1,1 +1,6 @@
-old content
+---
+title: new title
+description: new description
+tags: [ "tag1" ]
+---
+new content
"
`;
exports[`RevisionsService removeOldRevisions remove all revisions except latest revision 1`] = `
"Index: test-note
===================================================================
--- test-note
+++ test-note
@@ -0,0 +1,6 @@
+---
+title: new title
+description: new description
+tags: [ "tag1" ]
+---
+new content
"
`;