Repository URL to install this package:
Version:
0.9.5 ▾
|
/**
* @todo probably could render with react-test-utils into a json tree
*/
import React from 'react'
import { storiesOf } from '@storybook/react'
import JsonLd from 'src/components/features/JsonLd'
const validSchema = { '@context': 'story' }
const invalidSchema = { 'no-context': Function }
storiesOf('features/JsonLd', module)
.add('default', () => <JsonLd />)
.add('valid', () => <JsonLd data={validSchema} />)
.add('valid & spread', () => <JsonLd {...validSchema} />)
.add('invalid', () => <JsonLd data={invalidSchema} />)