import React from 'react' ; import { mount } from './util/wrapper' ; import InputNumber from '../src' ; jest . mock ( 'rc-util/lib/isMobile' , ( ) => ( ) => true ) ; describe ( 'InputNumber.Mobile' , ( ) => { it ( 'not show steps when mobile' , ( ) => { const wrapper = mount ( < InputNumber />); expect ( wrapper . exists ( '.rc-input-number-handler-wrap' ) ) . toBeFalsy ( ) ; } ) ; } ) ;