Sha256: a150451ed4dbe5b69e5f4e496c31bfaf99c6876d31f9b26bfe4319c8a4b8dcf1
Contents?: true
Size: 813 Bytes
Versions: 819
Compression:
Stored size: 813 Bytes
Contents
import React from 'react' import { render, screen } from '../utilities/test-utils' import StatChange from './_stat_change' test('it renders each status', () => { render( <StatChange change="increase" value="28.4" /> ) const kit = screen.getByText('28.4%') expect(kit).toHaveClass(`pb_body_kit_positive`) }) test('it renders preset icon', () => { render( <StatChange change="increase" value="28.4" /> ) const kit = screen.getByLabelText('arrow-up icon') expect(kit).toBeTruthy }) test('it renders custom icon', () => { render( <StatChange icon="chart-line-down" value={6.1} /> ) const kit = screen.getByLabelText('chart-line-down icon') expect(kit).toBeTruthy })
Version data entries
819 entries across 819 versions & 1 rubygems