Sha256: a150451ed4dbe5b69e5f4e496c31bfaf99c6876d31f9b26bfe4319c8a4b8dcf1

Contents?: true

Size: 813 Bytes

Versions: 956

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

956 entries across 956 versions & 1 rubygems

Version Path
playbook_ui-12.6.0.pre.alpha.collapsible1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.6.0.pre.alpha.cssphone1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.6.0 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.5.0.pre.alpha.datepickerinput1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.5.0.pre.alpha.phonerails1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.5.0.pre.alpha.filter1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.5.0 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.4.0.pre.alpha.map1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.4.0.pre.alpha.devdocstest1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.4.0 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.3.1.pre.alpha.phone1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.3.1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.3.0.pre.alpha.patchtest1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.3.0 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-12.2.0 app/pb_kits/playbook/pb_stat_change/stat_change.test.js