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

Version Path
foreman-tasks-0.16.3 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.11 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.16.2 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.10 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.16.1 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.17.0 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.9 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.8 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.7 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.16.0 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.6 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.5 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.4 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.3 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.2 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-0.15.1 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js