@sanity/block-content-tests
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "@sanity/block-content-tests", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Tests for shared block content rendering logic", | ||
@@ -5,0 +5,0 @@ "main": "tests.js", |
11
tests.js
@@ -186,2 +186,13 @@ const identity = inp => inp | ||
test('can render images with correct hotspot/crop', () => { | ||
const {input, output} = require('./fixtures/025-image-with-hotspot') | ||
const result = render({ | ||
blocks: input, | ||
projectId: '3do82whm', | ||
dataset: 'production', | ||
imageOptions: {w: 320, h: 240} | ||
}) | ||
expect(result).toEqual(normalize(output)) | ||
}) | ||
test('can specify custom serializer for custom block types', () => { | ||
@@ -188,0 +199,0 @@ const {input, output} = require('./fixtures/050-custom-block-type') |
81335
36
3448