1
0
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:
Jernej Pregelj 2019-05-08 15:57:57 +02:00
parent ad633af59d
commit 027b3b426e
2 changed files with 12 additions and 1 deletions

View File

@ -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'))
})
})

View 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 →'))
})
})