From 890852995527df7f6362908b039d28a72bb60f97 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 14 Jun 2023 12:40:59 -0300 Subject: test: provide convenient dummy transformContent mock --- test/lib/content-function.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') 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)) { -- cgit 1.3.0-6-gf8a5