You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
380 B
13 lines
380 B
5 years ago
|
import React from 'react';
|
||
|
import { mount } from 'enzyme';
|
||
|
import TransButton from '../transButton';
|
||
|
|
||
|
describe('transButton component', () => {
|
||
|
it('disabled should update style', () => {
|
||
|
const wrapper = mount(<TransButton disabled />);
|
||
|
expect(wrapper.find('div').first().props().style).toEqual(
|
||
|
expect.objectContaining({ pointerEvents: 'none' }),
|
||
|
);
|
||
|
});
|
||
|
});
|