Sha256: 80b481081bdaf1d4b6d5637e3c04b86a10c8748225e69a658ab77a9fd4e7a55b
Contents?: true
Size: 705 Bytes
Versions: 188
Compression:
Stored size: 705 Bytes
Contents
import React from 'react'; import TestRenderer from 'react-test-renderer'; import SubscriptionDetailProducts from '../SubscriptionDetailProducts'; import { successState } from './subscriptionDetails.fixtures'; describe('subscription detail product page', () => { it('renders correctly', () => { const testRenderer = TestRenderer .create(<SubscriptionDetailProducts subscriptionDetails={successState} />); const testInstance = testRenderer.root; expect(testRenderer.toJSON()).toMatchSnapshot(); expect(testInstance.findByType('h2').children[0]).toBe('Provided Products'); expect(testInstance.findAllByType('li')).toHaveLength(successState.provided_products.length); }); });
Version data entries
188 entries across 188 versions & 1 rubygems