Sha256: 0bcd60c8f79ce7b8ae751276396a97e0493004e37ee69e3166866a5cdf4ea538
Contents?: true
Size: 617 Bytes
Versions: 26
Compression:
Stored size: 617 Bytes
Contents
import React from 'react' import { render, screen } from '../utilities/test-utils' import Title from './_title' test('returns namespaced class name', () => { render( <Title data={{ testid: 'primary-test' }} text="Test colors" /> ) const kit = screen.getByTestId('primary-test') expect(kit).toHaveClass('pb_title_kit_3') }) test('with colors', () => { render( <Title color="success" data={{ testid: 'primary-test' }} text="Test colors" /> ) const kit = screen.getByTestId('primary-test') expect(kit).toHaveClass('pb_title_kit_3_success') })
Version data entries
26 entries across 26 versions & 1 rubygems