1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/unit/webui/components/footer.spec.js
Ayush Sharma 66391f4c9c
refactor: adds unit test for <Search /> (#1137)
* refactor: adds test for <Search /> component

* refactor: <Footer /> component mocks verdaccio's version

* refactor: <Search /> component test
2018-11-26 20:28:59 +01:00

21 lines
468 B
JavaScript

import React from 'react';
import { mount } from 'enzyme';
import Footer from '../../../../src/webui/components/Footer/index';
jest.mock('../../../../package.json', () => ({
version: '4.0.0-alpha.3'
}))
describe('<Footer /> component', () => {
let wrapper;
beforeEach(() => {
wrapper = mount(<Footer />);
});
it('should load the initial state of Footer component', () => {
expect(wrapper.html()).toMatchSnapshot();
});
});