Sha256: c69d03b4e80c79127b5c4102167f04aedcffa5c5d1fbc34bfa4d0077db6bcc3f
Contents?: true
Size: 726 Bytes
Versions: 4
Compression:
Stored size: 726 Bytes
Contents
import React from 'react'; import * as patternfly from '@patternfly/react-core'; import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; import { SelectField } from '../SelectField'; jest.spyOn(patternfly, 'Select'); jest.spyOn(patternfly, 'SelectOption'); patternfly.Select.mockImplementation(props => <div>{props}</div>); patternfly.SelectOption.mockImplementation(props => <div>{props}</div>); const fixtures = { 'renders with props': { label: 'grouped select', fieldId: 'field-id', options: ['Commands'], value: 'Commands', setValue: jest.fn(), }, }; describe('SelectField', () => { describe('rendering', () => testComponentSnapshotsWithFixtures(SelectField, fixtures)); });
Version data entries
4 entries across 4 versions & 1 rubygems