Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Oct 18, 2023
1 parent 6ef64a9 commit dca7a95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/uploader.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,4 +850,9 @@ describe('uploader', () => {

expect(requests[0].url).toEqual('bamboo');
});

it('props: innerStyle', () => {
const wrapper = mount(<Uploader innerStyle={{ color: 'red' }} />);
expect(wrapper.find('input').props().style.color).toBe('red');
});
});

0 comments on commit dca7a95

Please sign in to comment.