From: Grégoire Aubert Date: Fri, 11 Jan 2019 12:45:15 +0000 (+0100) Subject: Fix GlobalFooterSonarCloud test X-Git-Tag: 7.6~125 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b78d75ecf3b0d8d40147355388d2853c698f3ce;p=sonarqube.git Fix GlobalFooterSonarCloud test --- diff --git a/server/sonar-web/src/main/js/app/components/__tests__/GlobalFooterSonarCloud-test.tsx b/server/sonar-web/src/main/js/app/components/__tests__/GlobalFooterSonarCloud-test.tsx index f93cd7f157f..686c31cc385 100644 --- a/server/sonar-web/src/main/js/app/components/__tests__/GlobalFooterSonarCloud-test.tsx +++ b/server/sonar-web/src/main/js/app/components/__tests__/GlobalFooterSonarCloud-test.tsx @@ -21,7 +21,7 @@ import * as React from 'react'; import { shallow } from 'enzyme'; import GlobalFooterSonarCloud from '../GlobalFooterSonarCloud'; -jest.mock('date-fns/get_year', () => jest.fn(() => 2018)); +jest.mock('date-fns/get_year', () => jest.fn(() => '20XX')); it('should render correctly', () => { expect(shallow()).toMatchSnapshot(); diff --git a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap index 532ec1362bc..9219f6becd4 100644 --- a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap @@ -6,7 +6,7 @@ exports[`should render correctly 1`] = ` id="footer" >
- © 2008-2019, SonarCloud by + © 2008-20XX, SonarCloud by