mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 23:05:30 -04:00
fix(tests): fix tests and linting
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
4250f4458b
commit
b44f395852
3 changed files with 37 additions and 4 deletions
|
@ -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
|
||||
"
|
||||
`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue