mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
fix/more tests
This commit is contained in:
parent
ad633af59d
commit
027b3b426e
@ -6,6 +6,6 @@ describe('Progress', () => {
|
||||
it('renders without crashing', () => {
|
||||
const { container, getByText } = render(<Publish />)
|
||||
expect(container.firstChild).toBeInTheDocument()
|
||||
expect(getByText('Next →')).toHaveAttribute('disabled')
|
||||
expect(getByText('Publish'))
|
||||
})
|
||||
})
|
||||
|
11
client/src/routes/Publish/loader.test.tsx
Normal file
11
client/src/routes/Publish/loader.test.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import React from 'react'
|
||||
import { render } from 'react-testing-library'
|
||||
import Loader from './loader'
|
||||
|
||||
describe('Progress', () => {
|
||||
it('renders without crashing', () => {
|
||||
const { container, getByText } = render(<Loader loadType={"dataset"} toSelect={()=>{}}/>)
|
||||
expect(container.firstChild).toBeInTheDocument()
|
||||
expect(getByText('Next →'))
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user