import React from 'react'; import TestRenderer from 'react-test-renderer'; import SubscriptionDetailInfo from '../SubscriptionDetailInfo'; import { successState } from './subscriptionDetails.fixtures'; describe('subscriptions detail associations page', () => { it('renders correctly', () => { const testRenderer = TestRenderer .create(); const testInstance = testRenderer.root; expect(testRenderer.toJSON()).toMatchSnapshot(); expect(testInstance.findByType('h2').children[0]).toBe('Subscription Info'); }); });