]> source.dussan.org Git - sonarqube.git/commitdiff
Fix GlobalFooterSonarCloud test
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Fri, 11 Jan 2019 12:45:15 +0000 (13:45 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 16 Jan 2019 08:42:58 +0000 (09:42 +0100)
server/sonar-web/src/main/js/app/components/__tests__/GlobalFooterSonarCloud-test.tsx
server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap

index f93cd7f157f7f2b8aa5624a2daf24bb9a634a52f..686c31cc385bd8bc1c5d13f73b032133d2de4fd6 100644 (file)
@@ -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(<GlobalFooterSonarCloud />)).toMatchSnapshot();
index 532ec1362bcc2b3e675abc0b406a6d75ce635e9d..9219f6becd48ccfb2b47177faaef13e123ceaf3d 100644 (file)
@@ -6,7 +6,7 @@ exports[`should render correctly 1`] = `
   id="footer"
 >
   <div>
-    © 2008-2019, SonarCloud by 
+    © 2008-20XX, SonarCloud by 
     <a
       href="http://www.sonarsource.com"
       rel="noopener noreferrer"