diff --git a/test/native/__mocks__/@wordpress/react-native-aztec/index.js b/test/native/__mocks__/@wordpress/react-native-aztec/index.js index 1452aeb957c872..0c08c17521fc34 100644 --- a/test/native/__mocks__/@wordpress/react-native-aztec/index.js +++ b/test/native/__mocks__/@wordpress/react-native-aztec/index.js @@ -2,7 +2,6 @@ * External dependencies */ import { TextInput } from 'react-native'; -import { omit } from 'lodash'; /** * WordPress dependencies @@ -15,9 +14,8 @@ const AztecInputState = jest.requireActual( '@wordpress/react-native-aztec' ) const AztecKeyCodes = jest.requireActual( '@wordpress/react-native-aztec' ) .default.KeyCodes; -const UNSUPPORTED_PROPS = [ 'style' ]; - const RCTAztecView = ( { accessibilityLabel, text, ...rest }, ref ) => { + const { style, ...supportedProps } = rest; const inputRef = useRef(); useImperativeHandle( ref, () => ( { @@ -40,7 +38,7 @@ const RCTAztecView = ( { accessibilityLabel, text, ...rest }, ref ) => { return (