Sha256: 75cad17ea20a1cbca6903bb4313774cd979f1ad898165e4f8fad0925790cdc93
Contents?: true
Size: 942 Bytes
Versions: 415
Compression:
Stored size: 942 Bytes
Contents
import React from 'react' import { render, screen } from '../utilities/test-utils' import LoadingInline from './_loading_inline' const testId = "loadingInline" test('should render custom class and data', () => { render( <LoadingInline className='custom-class' data={{ testid: testId }} /> ) const kit = screen.getByTestId(testId) expect(kit).toHaveClass('custom-class') }) test('should render id', () => { render( <LoadingInline data={{ testid: testId }} id={testId} /> ) const kit = screen.getByTestId(testId) expect(kit).toHaveProperty('id', testId) }) test('should render aria-label', () => { render( <LoadingInline aria={{ label: testId }} data={{ testid: testId }} /> ) const kit = screen.getByTestId(testId) expect(kit).toHaveAttribute('aria-label', testId) })
Version data entries
415 entries across 415 versions & 1 rubygems