1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

update tests

This commit is contained in:
Matthias Kretschmann 2019-05-31 17:28:13 +02:00
parent 1d1399248f
commit 56604b972c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

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