Sha256: ff556a4043906a18484854460dca234a47e3181d8a7c02989494e537b1e1b408
Contents?: true
Size: 477 Bytes
Versions: 16
Compression:
Stored size: 477 Bytes
Contents
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import ForemanTasksRoutes from './ForemanTasksRoutes'; describe('ForemanTasksRoutes', () => { it('should create routes', () => { Object.entries(ForemanTasksRoutes).forEach(([key, Route]) => { const component = shallow(<Route.render some="props" />); Route.renderResult = toJson(component); }); expect(ForemanTasksRoutes).toMatchSnapshot(); }); });
Version data entries
16 entries across 16 versions & 1 rubygems