Sha256: f20f2c3eba50b0721477808dfda18c6c8b3bafe81662b7f51f3953905c10ad04
Contents?: true
Size: 607 Bytes
Versions: 36
Compression:
Stored size: 607 Bytes
Contents
import React from 'react' import { render, screen } from '../utilities/test-utils' import Body from './_body' test('returns namespaced class name', () => { render( <Body data={{ testid: 'primary-test' }} text="Test colors" /> ) const kit = screen.getByTestId('primary-test') expect(kit).toHaveClass('pb_body_kit') }) test('with colors', () => { render( <Body color="success" data={{ testid: 'primary-test' }} text="Test colors" /> ) const kit = screen.getByTestId('primary-test') expect(kit).toHaveClass('pb_body_kit_success') })
Version data entries
36 entries across 36 versions & 1 rubygems