Sha256: 742d299ec9e85e3f10347fe8cdf834860ee25d7bd419c516e874dbb4afd5779c
Contents?: true
Size: 1010 Bytes
Versions: 59
Compression:
Stored size: 1010 Bytes
Contents
import React from 'react'; import { render, screen } from '@testing-library/react'; import '@testing-library/jest-dom'; import ImportRolesAndVariablesTable from '../AnsibleRolesAndVariables'; const rowsData = [ { cells: [ 'bennojoy.ntp', 'Update Role Variables', 'Add: 1 Remove: 2 ', '', '', ], kind: 'old', id: 'bennojoy.ntp', }, { cells: ['0ta2.git_role', 'Import Role ', 'Add: 5 ', '', ''], kind: 'new', id: '0ta2.git_role', }, ]; const columnsData = [ { title: 'Name' }, { title: 'Operation' }, { title: 'Variables' }, { title: 'Hosts Count' }, { title: 'Hostgroups count' }, ]; describe('ImportRolesAndVariablesTable', () => { it('should render', () => { render( <ImportRolesAndVariablesTable rowsData={rowsData} columnsData={columnsData} /> ); expect(screen.getByText('bennojoy.ntp')).toBeInTheDocument(); expect(screen.getByText('0ta2.git_role')).toBeInTheDocument(); }); });
Version data entries
59 entries across 59 versions & 1 rubygems