Revision 89b8fc37
Added by Amir Fefer over 4 years ago
webpack/assets/javascripts/react_app/components/common/Loader/Loader.test.js | ||
---|---|---|
import toJson from 'enzyme-to-json';
|
||
import { shallow, mount } from 'enzyme';
|
||
import { shallow, mount } from '@theforeman/test';
|
||
import React from 'react';
|
||
|
||
import { STATUS } from '../../../constants';
|
||
... | ... | |
</Loader>
|
||
);
|
||
|
||
expect(toJson(wrapper)).toMatchSnapshot();
|
||
expect(wrapper).toMatchSnapshot();
|
||
};
|
||
|
||
describe('Loader', () => {
|
||
... | ... | |
it('default case', () => {
|
||
const wrapper = mount(<Loader />);
|
||
|
||
expect(toJson(wrapper)).toMatchSnapshot();
|
||
expect(wrapper).toMatchSnapshot();
|
||
});
|
||
});
|
||
});
|
Also available in: Unified diff
Fixes #28488 - consume jest config from env