import React from 'react'; import InputNumber from '..'; import { render } from '../../../tests/utils'; describe('addon', () => { it('disabled status when prefix is active', () => { const { container } = render(); expect(container.querySelector('.ant-input-number-affix-wrapper-disabled')).toBeInTheDocument(); }); it('disabled status when addon is active', () => { const { container } = render( , ); expect(container.querySelector('.ant-input-number-group-wrapper-disabled')).toBeInTheDocument(); }); it('disabled status when prefix and addon is active', () => { const { container } = render( , ); expect(container.querySelector('.ant-input-number-group-wrapper-disabled')).toBeInTheDocument(); expect(container.querySelector('.ant-input-number-affix-wrapper-disabled')).toBeInTheDocument(); }); });