Sha256: 456068dd57d8c0479c6b72480d2e136bc19a8ed0038228daf963ae34f027687d

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 Bytes

Contents

import React from 'react';
import { shallow } from '@theforeman/test';

import ForemanTasksRoutes from './ForemanTasksRoutes';

describe('ForemanTasksRoutes', () => {
  it('should create routes', () => {
    Object.entries(ForemanTasksRoutes).forEach(([key, Route]) => {
      const component = shallow(<Route.render history={{}} some="props" />);
      Route.renderResult = component;
    });

    expect(ForemanTasksRoutes).toMatchSnapshot();
  });
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman-tasks-1.1.3 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-1.1.2 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-1.1.1 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-1.1.0 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
foreman-tasks-1.0.1 webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js