Sha256: dfe90588a9da153f41e0983899d352fa18f8c50d7fcdcea068b6255e5ef0818f
Contents?: true
Size: 905 Bytes
Versions: 157
Compression:
Stored size: 905 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 thin font weight', () => { render( <Title bold={false} data={{ testid: 'primary-test' }} text="Test thin font weight" /> ) const kit = screen.getByTestId('primary-test') expect(kit).toHaveClass('pb_title_kit_size_3_thin') }) 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
157 entries across 157 versions & 1 rubygems