« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--test/lib/content-function.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lib/content-function.js b/test/lib/content-function.js
index ac527abc..5216c4f2 100644
--- a/test/lib/content-function.js
+++ b/test/lib/content-function.js
@@ -96,6 +96,15 @@ export function testContentFunctions(t, message, fn) {
       return value;
     };
 
+    evaluate.mock.transformContent = {
+      transformContent: {
+        extraDependencies: ['html'],
+        data: content => ({content}),
+        slots: {mode: {type: 'string'}},
+        generate: ({content}) => content,
+      },
+    };
+
     await fn(t, evaluate);
 
     if (!empty(mocks)) {