Skip to content

Commit

Permalink
[test] Convert HiddenCSS tests to testing-library
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 29, 2021
1 parent 1027f60 commit a2e5d0d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/material-ui/src/Hidden/HiddenCss.test.js
@@ -1,17 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { createMount, createClientRender } from 'test/utils';
import { createClientRender } from 'test/utils';
import HiddenCss from './HiddenCss';
import { createTheme, ThemeProvider } from '../styles';
import classes from './hiddenCssClasses';

const TestChild = () => <div data-testid="test-child">bar</div>;

describe('<HiddenCss />', () => {
/**
* @type {ReturnType<typeof createMount>}
*/
const mount = createMount();
const render = createClientRender();

describe('the generated class names', () => {
Expand Down Expand Up @@ -140,7 +136,7 @@ describe('<HiddenCss />', () => {

it('warns about excess props (potentially undeclared breakpoints)', () => {
expect(() => {
mount(
render(
<HiddenCss xxlUp>
<div />
</HiddenCss>,
Expand Down

0 comments on commit a2e5d0d

Please sign in to comment.