mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
update tests
This commit is contained in:
parent
1d1399248f
commit
56604b972c
@ -1,11 +1,12 @@
|
||||
import React from 'react'
|
||||
import { render, fireEvent } from '@testing-library/react'
|
||||
import { BrowserRouter as Router } from 'react-router-dom'
|
||||
import StepRegisterContent from './StepRegisterContent'
|
||||
import StepRegisterContent, { messages } from './StepRegisterContent'
|
||||
|
||||
const stateMock = {
|
||||
publishedDid: '',
|
||||
publishingError: '',
|
||||
publishingStep: 0,
|
||||
isPublishing: false,
|
||||
isPublished: false
|
||||
}
|
||||
@ -36,7 +37,7 @@ describe('StepRegisterContent', () => {
|
||||
</Router>
|
||||
)
|
||||
expect(container.querySelector('.spinnerMessage')).toHaveTextContent(
|
||||
'Please sign with your crypto wallet'
|
||||
messages[stateMock.publishingStep].replace(/<(?:.|\n)*?>/gm, '')
|
||||
)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user