From 8b78d75ecf3b0d8d40147355388d2853c698f3ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Fri, 11 Jan 2019 13:45:15 +0100 Subject: [PATCH] Fix GlobalFooterSonarCloud test --- .../js/app/components/__tests__/GlobalFooterSonarCloud-test.tsx | 2 +- .../__snapshots__/GlobalFooterSonarCloud-test.tsx.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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