fix tsc errors
This commit is contained in:
parent
153d852f76
commit
4d22e0d2ee
@ -261,7 +261,7 @@ describe('upload plugin archive', () => {
|
||||
expect.any(FormData),
|
||||
)
|
||||
})
|
||||
const formData: FormData = fetch.post.mock.calls[0][1]
|
||||
const formData = fetch.post.mock.calls[0][1] as FormData
|
||||
expect(formData.get('file')).toStrictEqual(file)
|
||||
expect(queryByText('plugin.zip')).not.toBeInTheDocument()
|
||||
expect(queryByText('ok')).toBeInTheDocument()
|
||||
|
@ -219,7 +219,7 @@ describe('upload texture', () => {
|
||||
expect.any(FormData),
|
||||
)
|
||||
|
||||
const formData: FormData = fetch.post.mock.calls[0][1]
|
||||
const formData = fetch.post.mock.calls[0][1] as FormData
|
||||
expect(formData.get('name')).toBe('t')
|
||||
expect(formData.get('type')).toBe('steve')
|
||||
expect(formData.get('file')).toStrictEqual(file)
|
||||
@ -239,7 +239,7 @@ describe('upload texture', () => {
|
||||
fireEvent.click(getByText(t('skinlib.upload.button')))
|
||||
|
||||
await waitFor(() => expect(fetch.post).toBeCalled())
|
||||
const formData: FormData = fetch.post.mock.calls[0][1]
|
||||
const formData = fetch.post.mock.calls[0][1] as FormData
|
||||
expect(formData.get('public')).toBe('0')
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user