Skip to content

Commit

Permalink
test: remove reference to ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipoliko committed Aug 28, 2024
1 parent 0cdfe97 commit be756d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
12 changes: 2 additions & 10 deletions packages/plugin-select/src/select/__tests__/SelectSpec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
getContextValue,
renderWithContext,
} from '@ima/testing-library';
import { getContextValue, renderWithContext } from '@ima/testing-library';
import { PureComponent, createRef } from 'react';

import forwardedSelect, {
Expand Down Expand Up @@ -139,12 +136,7 @@ describe('plugin-select:', () => {
}

render() {
return (
<div>
{JSON.stringify(this.props, null, 2)}
ref?: {this.props.forwardedRef ? 'true' : 'false'}
</div>
);
return <div>{JSON.stringify(this.props, null, 2)}</div>;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ exports[`plugin-select: select should forward ref 1`] = `
"width": 90,
"height": 60
}
ref?:
false
</div>
`;

Expand All @@ -62,8 +60,6 @@ exports[`plugin-select: select should render component 1`] = `
"color": "red"
}
}
ref?:
false
</div>
`;

Expand All @@ -78,8 +74,6 @@ exports[`plugin-select: select should render component with changed props 1`] =
"width": 270,
"height": 180
}
ref?:
false
</div>
`;

Expand All @@ -94,8 +88,6 @@ exports[`plugin-select: select should render component with extraProps 1`] = `
"width": 90,
"height": 60
}
ref?:
false
</div>
`;

Expand All @@ -110,8 +102,6 @@ exports[`plugin-select: select should render component with extraProps and own c
"width": 90,
"height": 60
}
ref?:
false
</div>
`;

Expand All @@ -126,8 +116,6 @@ exports[`plugin-select: select should render component with extraProps and own s
"width": 90,
"height": 60
}
ref?:
false
</div>
`;

Expand All @@ -143,8 +131,6 @@ exports[`plugin-select: select should render component with extraProps and own s
"width": 90,
"height": 60
}
ref?:
false
</div>
`;

Expand All @@ -159,8 +145,6 @@ exports[`plugin-select: select should render component with extraProps modifies
"width": 45,
"height": 30
}
ref?:
false
</div>
`;

Expand All @@ -176,7 +160,5 @@ exports[`plugin-select: select should render component with extraProps replaced
"width": 90,
"height": 60
}
ref?:
false
</div>
`;

0 comments on commit be756d3

Please sign in to comment.