Sha256: 1745b5902cb5011db241cf6e2cd0706b77950be45cd08a8c61a50a8e8b277823
Contents?: true
Size: 898 Bytes
Versions: 13
Compression:
Stored size: 898 Bytes
Contents
import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; import AnsibleRolesSwitcher from '../AnsibleRolesSwitcher'; jest.mock('foremanReact/components/Pagination/PaginationWrapper'); const noop = () => {}; const fixtures = { 'should render': { loading: false, pagination: { page: 1, perPage: 12 }, itemCount: 20, addAnsibleRole: noop, removeAnsibleRole: noop, moveAnsibleRole: noop, getAnsibleRoles: noop, changeAssignedPage: noop, assignedPagination: { page: 1, perPage: 12 }, assignedRolesCount: 2, assignedRoles: [], unassignedRoles: [], initialAssignedRoles: [], error: { statusText: '', errorMsg: '' }, allAssignedRoles: [], toDestroyRoles: [], availableRolesUrl: 'http://test/roles', }, }; describe('AnsibleRolesSwitcher', () => testComponentSnapshotsWithFixtures(AnsibleRolesSwitcher, fixtures));
Version data entries
13 entries across 13 versions & 1 rubygems