import { mount } from 'enzyme'; import React from 'react'; import TransButton from '../transButton'; describe('transButton component', () => { it('disabled should update style', () => { const wrapper = mount(); expect(wrapper.find('div').first().props().style).toEqual( expect.objectContaining({ pointerEvents: 'none' }), ); }); });