mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
263b0f78a9
refactor: variable naming
22 lines
604 B
JavaScript
22 lines
604 B
JavaScript
|
|
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
|
|
import Footer from '../../../../src/webui/components/Footer/index';
|
|
|
|
describe('<Footer /> component', () => {
|
|
let wrapper;
|
|
beforeEach(() => {
|
|
wrapper = mount(<Footer />);
|
|
});
|
|
|
|
it('should load the inital state of Footer component', () => {
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
});
|
|
|
|
it('should hover the earth in footer', () => {
|
|
const earth = wrapper.find('img[alt="Earth"]');
|
|
earth.simulate('click');
|
|
expect(wrapper.state('showAuthorsGeographic')).toEqual(true);
|
|
});
|
|
}); |