theforeman/foreman

View on GitHub
webpack/assets/javascripts/react_app/components/common/table/components/__tests__/NameCell.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
import NameCell from '../NameCell';

const fixtures = {
  'should render active link': {
    active: true,
    id: 1,
    name: 'KVM',
    controller: 'models',
  },
  'should render disabled link': {
    id: 2,
    name: 'HyperV',
    controller: 'models',
  },
};

describe('NameCell', () =>
  testComponentSnapshotsWithFixtures(NameCell, fixtures));