Sha256: 5c20ca1d5ba5ad77f06af06531d8deb2f72f799b52f948b92e5594153050419d
Contents?: true
Size: 738 Bytes
Versions: 181
Compression:
Stored size: 738 Bytes
Contents
import React from 'react'; import TestRenderer from 'react-test-renderer'; import { ListView } from 'patternfly-react'; import SubscriptionDetailProductContent from '../SubscriptionDetailProductContent'; import { availableContent, product } from '../../../Products/__tests__/products.fixtures.js'; describe('subscription detail product content page', () => { it('renders correctly', () => { const testRenderer = TestRenderer .create(<SubscriptionDetailProductContent productContent={{ results: [product([availableContent])] }} />); const testInstance = testRenderer.root; expect(testRenderer.toJSON()).toMatchSnapshot(); expect(testInstance.findAllByType(ListView.Item)).toHaveLength(1); }); });
Version data entries
181 entries across 181 versions & 1 rubygems