add transBtn coverage

This commit is contained in:
zombiej 2020-05-23 15:19:24 +08:00
parent 7c260c03a5
commit 508401cca4

View File

@ -0,0 +1,12 @@
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' }),
);
});
});