import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import SubscriptionsPage from '../SubscriptionsPage'; import { successState } from './subscriptions.fixtures'; import { loadSubscriptions, updateQuantity } from '../SubscriptionActions'; import { loadSetting } from '../../../move_to_foreman/Settings/SettingsActions'; jest.mock('../../../move_to_foreman/foreman_toast_notifications'); describe('subscriptions page', () => { const noop = () => {}; const organization = { owner_details: { upstreamConsumer: 'blah' } }; it('should render', async () => { const page = shallow( {}} />); expect(toJson(page)).toMatchSnapshot(); }); });