Sha256: c53a506b97438699c83d3f6c6f6abbe267921245beda58958b0b890f65bc55c9
Contents?: true
Size: 771 Bytes
Versions: 99
Compression:
Stored size: 771 Bytes
Contents
import React from 'react' import { render, screen } from '../utilities/test-utils' import { MultiLevelSelect } from '../' const treeData = { label: 'search me', value: 'searchme', id:'default1', children: [ { label: 'search me too', value: 'searchmetoo', id:'default2', children: [ { label: 'No one can get me', value: 'anonymous', id:'default2', }, ], }, ], } const testId = "multiselect-test" test('should render custom class', () => { render( <MultiLevelSelect className='custom-class' data={{ testid: testId}} treeData={treeData} /> ) const kit = screen.getByTestId(testId) expect(kit).toHaveClass('custom-class') })
Version data entries
99 entries across 99 versions & 1 rubygems