fix: takes the app version from verdaccio

This commit is contained in:
Juan Picado @jotadeveloper
2019-04-13 23:27:44 +02:00
parent f9da05744b
commit 6f108370ce
5 changed files with 7 additions and 4 deletions

View File

@@ -6,12 +6,14 @@ import Footer from '../../../../src/webui/components/Footer/index';
jest.mock('../../../../package.json', () => ({
version: '4.0.0-alpha.3'
}))
}));
describe('<Footer /> component', () => {
let wrapper;
beforeEach(() => {
window.VERDACCIO_VERSION = 'v.1.0.0';
wrapper = mount(<Footer />);
delete window.VERDACCIO_VERSION;
});
test('should load the initial state of Footer component', () => {