Sha256: 220efb8da072d7d18b6c7da2089eba032b40127093eedcdbccf88a3d480b2032
Contents?: true
Size: 925 Bytes
Versions: 9
Compression:
Stored size: 925 Bytes
Contents
import React from 'react'; import { render, screen } from '../utilities/test-utils'; import CircleChart from './_circle_chart'; beforeEach(() => { // Silences error logs within the test suite. jest.spyOn(console, 'error'); jest.spyOn(console, 'warn'); console.error.mockImplementation(() => {}); console.warn.mockImplementation(() => {}); }); afterEach(() => { console.error.mockRestore(); console.warn.mockRestore(); }); const testId = 'circlechart1'; test.skip('uses exact classname', () => { const data = [ { name: 'Waiting for Calls', value: 41, }, { name: 'On Call', value: 49, }, { name: 'After call', value: 10, }, ] render( <CircleChart chartData={data} data={{ testid: testId }} id='circlechartid' /> ); const kit = screen.getByTestId(testId); expect(kit).toHaveClass('pb_circle_chart'); });
Version data entries
9 entries across 9 versions & 1 rubygems