@sanity/block-content-tests
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@sanity/block-content-tests", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Tests for shared block content rendering logic", | ||
@@ -5,0 +5,0 @@ "main": "tests.js", |
@@ -1,2 +0,6 @@ | ||
module.exports = function runTests(options) { | ||
const identity = inp => inp | ||
const defaults = {normalize: identity} | ||
module.exports = function runTests(opts = {}) { | ||
const options = Object.assign({}, defaults, opts) | ||
const {render, h, normalize, getImageUrl} = options | ||
@@ -3,0 +7,0 @@ |
10370
178