fix: add new window property to interface definition

This commit is contained in:
Antoine Chalifour
2019-10-03 13:30:01 +02:00
committed by antoinechalifour
parent 7a8b158188
commit b35baa069f
4 changed files with 5 additions and 6 deletions

View File

@@ -10,10 +10,8 @@ jest.mock('../../../package.json', () => ({
describe('<Footer /> component', () => {
let wrapper;
beforeEach(() => {
// @ts-ignore : Property 'VERDACCIO_VERSION' does not exist on type 'Window'
window.VERDACCIO_VERSION = 'v.1.0.0';
wrapper = mount(<Footer />);
// @ts-ignore : Property 'VERDACCIO_VERSION' does not exist on type 'Window'
delete window.VERDACCIO_VERSION;
});