Sha256: bd684cee44715f8aff55f270d4963c2bf6c1b8d69b0e56ee714226313076066b
Contents?: true
Size: 750 Bytes
Versions: 9
Compression:
Stored size: 750 Bytes
Contents
import React from 'react'; import { render, screen } from '../utilities/test-utils'; import BarGraph from './_bar_graph'; 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 = 'bargraph1'; test.skip('bargraph uses exact classname', () => { render( <BarGraph className='super_important_class' data={{ testid: testId }} id='bar-default' /> ); const kit = screen.getByTestId(testId); expect(kit).toHaveClass('super_important_class'); });
Version data entries
9 entries across 9 versions & 1 rubygems