Skip to content

Commit 2c47e1f

Browse files
committed
Fix some unit tests
1 parent 491201e commit 2c47e1f

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/block-editor/src/components/colors/test/with-colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe( 'createCustomColorsHOC', () => {
3737
colors: undefined,
3838
setBackgroundColor: expect.any( Function ),
3939
} ),
40-
expect.anything()
40+
undefined
4141
);
4242
} );
4343

packages/components/src/disabled/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function Disabled( {
6363
<Provider value={ isDisabled }>
6464
<div
6565
// @ts-ignore Reason: inert is a recent HTML attribute
66-
inert={ isDisabled ? 'true' : undefined }
66+
inert={ isDisabled ? true : undefined }
6767
className={
6868
isDisabled
6969
? cx( disabledStyles, className, 'components-disabled' )

packages/components/src/tree-grid/test/cell.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ describe( 'TreeGridCell', () => {
3434
</TreeGridCell>
3535
)
3636
).toThrow();
37-
expect( console ).toHaveErrored();
3837
} );
3938

4039
it( 'uses a child render function to render children', () => {

packages/components/src/tree-grid/test/roving-tab-index-item.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ describe( 'RovingTabIndexItem', () => {
2626
expect( () =>
2727
render( <RovingTabIndexItem as={ TestButton } /> )
2828
).toThrow();
29-
expect( console ).toHaveErrored();
3029
} );
3130

3231
it( 'allows another component to be specified as the rendered component using the `as` prop', () => {

0 commit comments

Comments
 (0)