Sha256: 027e4d86ce7873ca4615acd04c730dd4bbe92f4b049948a191fb4ee0fc37f78e
Contents?: true
Size: 627 Bytes
Versions: 56
Compression:
Stored size: 627 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_size_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_size_3_success') })
Version data entries
56 entries across 56 versions & 1 rubygems