Remove nonsensical snapshots

This commit is contained in:
Marat Adiyatullin 2021-05-05 12:25:45 +03:00
parent 0bf9b92563
commit 7667149776
6 changed files with 10 additions and 15 deletions

View file

@ -48,9 +48,9 @@ describe('Config', () => {
expect(wrapper.toJSON()).toMatchSnapshot(); expect(wrapper.toJSON()).toMatchSnapshot();
}); });
it('matches snapshot when no config', () => { it('is empty when no config', () => {
const wrapper = create(setupWrapper({ config: null })); const wrapper = mount(setupWrapper({ config: null }));
expect(wrapper.toJSON()).toMatchSnapshot(); expect(wrapper.html()).toEqual('');
}); });
it('fetches config on mount', () => { it('fetches config on mount', () => {

View file

@ -16,5 +16,3 @@ exports[`Config view matches snapshot 1`] = `
`; `;
exports[`Config view matches snapshot when fetching config 1`] = `<mock-PageLoader />`; exports[`Config view matches snapshot when fetching config 1`] = `<mock-PageLoader />`;
exports[`Config view matches snapshot when no config 1`] = `null`;

View file

@ -1,5 +1,6 @@
import React from 'react'; import React from 'react';
import { create } from 'react-test-renderer'; import { create } from 'react-test-renderer';
import { mount } from 'enzyme';
import { containerRendersView } from 'lib/testHelpers'; import { containerRendersView } from 'lib/testHelpers';
import OverviewContainer from 'components/Connect/Details/Overview/OverviewContainer'; import OverviewContainer from 'components/Connect/Details/Overview/OverviewContainer';
import Overview, { import Overview, {
@ -27,9 +28,9 @@ describe('Overview', () => {
expect(wrapper.toJSON()).toMatchSnapshot(); expect(wrapper.toJSON()).toMatchSnapshot();
}); });
it('matches snapshot when no connector', () => { it('is empty when no connector', () => {
const wrapper = create(setupWrapper({ connector: null })); const wrapper = mount(setupWrapper({ connector: null }));
expect(wrapper.toJSON()).toMatchSnapshot(); expect(wrapper.html()).toBeNull();
}); });
}); });
}); });

View file

@ -62,5 +62,3 @@ exports[`Overview view matches snapshot 1`] = `
</table> </table>
</div> </div>
`; `;
exports[`Overview view matches snapshot when no connector 1`] = `null`;

View file

@ -74,9 +74,9 @@ describe('Details', () => {
expect(wrapper.toJSON()).toMatchSnapshot(); expect(wrapper.toJSON()).toMatchSnapshot();
}); });
it('matches snapshot when no connector', () => { it('is empty when no connector', () => {
const wrapper = create(setupWrapper({ connector: null })); const wrapper = mount(setupWrapper({ connector: null }));
expect(wrapper.toJSON()).toMatchSnapshot(); expect(wrapper.html()).toEqual('');
}); });
it('fetches connector on mount', () => { it('fetches connector on mount', () => {

View file

@ -101,5 +101,3 @@ exports[`Details view matches snapshot 1`] = `
exports[`Details view matches snapshot when fetching connector 1`] = `<mock-PageLoader />`; exports[`Details view matches snapshot when fetching connector 1`] = `<mock-PageLoader />`;
exports[`Details view matches snapshot when fetching tasks 1`] = `<mock-PageLoader />`; exports[`Details view matches snapshot when fetching tasks 1`] = `<mock-PageLoader />`;
exports[`Details view matches snapshot when no connector 1`] = `null`;