Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 7, 2021
1 parent cae20fd commit e8b4b3b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions components/upload/__tests__/type.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,20 @@ describe('Upload.typescript', () => {
it('data', () => {
const upload1 = (
<Upload
data={() => {
return {
url: '',
};
}}
data={() => ({
url: '',
})}
>
<span>click to upload</span>
</Upload>
);
const upload2 = (
<Upload
data={() => {
return Promise.resolve({
data={() =>
Promise.resolve({
url: '',
});
}}
})
}
>
<span>click to upload</span>
</Upload>
Expand Down

0 comments on commit e8b4b3b

Please sign in to comment.