Sha256: 9d5e42ba504a9933049724ec4f6a4d9472049cc4786ff97308f2799aa74d6f3b
Contents?: true
Size: 753 Bytes
Versions: 9
Compression:
Stored size: 753 Bytes
Contents
import React from 'react'; import { render, screen } from '../utilities/test-utils'; import Gauge from './_gauge'; 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 = 'gauge1'; test.skip('uses exact classname', () => { const data = [ { name: 'Name', value: 45 }, ] render( <Gauge chartData={data} data={{ testid: testId }} id='gaugeid' /> ); const kit = screen.getByTestId(testId); expect(kit).toHaveClass('pb_gauge_kit'); });
Version data entries
9 entries across 9 versions & 1 rubygems