New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/block-content-tests

Package Overview
Dependencies
Maintainers
7
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/block-content-tests - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

fixtures/025-image-with-hotspot.js

2

package.json
{
"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",

@@ -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')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc