Newer
Older
import Connection from 'components/Connection/Connection'
import { mount } from 'enzyme'
import toJson from 'enzyme-to-json'
import { createMockEcolyoStore } from 'tests/__mocks__/store'
jest.mock('components/Connection/EPGLConnect/EpglInit', () => 'mock-EpglInit')
jest.mock('components/Connection/GRDFConnect/GrdfInit', () => 'mock-GrdfInit')
describe('Connection component test', () => {
it('should call GrdfInit', () => {
)
expect(toJson(wrapper)).toMatchSnapshot()
})
it('should call EpglInit', () => {
<Connection fluidType={FluidType.WATER} />
)
expect(toJson(wrapper)).toMatchSnapshot()
})
})