Sha256: b50dd46c4416bee085278d23ef39511db5e9a4b6f7b4059d1dcf63ac3afbbea3
Contents?: true
Size: 915 Bytes
Versions: 36
Compression:
Stored size: 915 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 thin') }) 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 thin') })
Version data entries
36 entries across 36 versions & 1 rubygems