diff options
Diffstat (limited to 'packages/integrations/markdoc/test/fixtures/content-collections/utils.js')
-rw-r--r-- | packages/integrations/markdoc/test/fixtures/content-collections/utils.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/integrations/markdoc/test/fixtures/content-collections/utils.js b/packages/integrations/markdoc/test/fixtures/content-collections/utils.js new file mode 100644 index 000000000..3a6244327 --- /dev/null +++ b/packages/integrations/markdoc/test/fixtures/content-collections/utils.js @@ -0,0 +1,8 @@ +export function stripRenderFn(entryWithRender) { + const { render, ...entry } = entryWithRender; + return entry; +} + +export function stripAllRenderFn(collection = []) { + return collection.map(stripRenderFn); +} |