« get me outta code hell

test: use postprocess option in snapshots - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/lib
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-04 13:51:52 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-04 13:52:17 -0300
commit9928fcbcff7cfa1aa6ec1f8437f43485e1245f21 (patch)
treecbaec1427241e2a79242ba0bbb4d205237987cd1 /test/lib
parent7f94b714cdac8b19334f1e06040581c65fb81216 (diff)
test: use postprocess option in snapshots
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/content-function.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/lib/content-function.js b/test/lib/content-function.js
index b6177e46..692d5109 100644
--- a/test/lib/content-function.js
+++ b/test/lib/content-function.js
@@ -70,17 +70,13 @@ export function testContentFunctions(t, message, fn) {
         throw new Error(`Await .load() before performing tests`);
       }
 
-      const [description, opts, fn] =
+      const [description, opts] =
         (typeof args[0] === 'string'
           ? args
           : ['output', ...args]);
 
       let result = evaluate(opts);
 
-      if (fn) {
-        result = fn(result);
-      }
-
       if (opts.multiple) {
         result = result.map(item => item.toString()).join('\n');
       } else {