forked from sombochea/verdaccio-ui
chore: sync with verdaccio master
This commit is contained in:
20
test/unit/webui/components/footer.spec.js
Normal file
20
test/unit/webui/components/footer.spec.js
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
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 />);
|
||||
});
|
||||
|
||||
test('should load the initial state of Footer component', () => {
|
||||
expect(wrapper.html()).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user