hedgedoc/backend/src/revisions/__snapshots__/revisions.service.spec.ts.snap
Erik Michelson b44f395852 fix(tests): fix tests and linting
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2024-09-26 18:39:37 +02:00

47 lines
989 B
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`RevisionsService purgeRevisions purges the revision history 1`] = `
"Index: test-note
===================================================================
--- test-note
+++ test-note
@@ -0,0 +1,6 @@
+---
+title: new title
+description: new description
+tags: [ "tag1" ]
+---
+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
"
`;