aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/SourceViewer/__tests__
diff options
context:
space:
mode:
authorphilippe-perrin-sonarsource <philippe.perrin@sonarsource.com>2022-01-27 11:06:59 +0100
committersonartech <sonartech@sonarsource.com>2022-01-27 20:03:05 +0000
commitdca8354af94e9feb46ea2312857e000aaa232372 (patch)
tree336b645749ab1fb1b1abdac19a69c70257e98b68 /server/sonar-web/src/main/js/components/SourceViewer/__tests__
parent85f744be340d8f404978341186dd77cc05584f31 (diff)
downloadsonarqube-dca8354af94e9feb46ea2312857e000aaa232372.tar.gz
sonarqube-dca8354af94e9feb46ea2312857e000aaa232372.zip
SONAR-15945 Get rid of T namespace in sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer/__tests__')
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/__tests__/SourceViewerHeader-test.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/SourceViewerHeader-test.tsx b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/SourceViewerHeader-test.tsx
index 2daf53f6013..1a879dcb4c8 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/SourceViewerHeader-test.tsx
+++ b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/SourceViewerHeader-test.tsx
@@ -22,6 +22,7 @@ import * as React from 'react';
import { mockMainBranch } from '../../../helpers/mocks/branch-like';
import { mockSourceViewerFile } from '../../../helpers/testMocks';
import { MetricKey } from '../../../types/metrics';
+import { Measure } from '../../../types/types';
import SourceViewerHeader from '../SourceViewerHeader';
it('should render correctly for a regular file', () => {
@@ -38,7 +39,7 @@ it('should render correctly for a unit test', () => {
});
it('should render correctly if issue details are passed', () => {
- const componentMeasures: T.Measure[] = [
+ const componentMeasures: Measure[] = [
{ metric: MetricKey.code_smells, value: '1' },
{ metric: MetricKey.file_complexity_distribution, value: '42' }, // unused, should be ignored
{ metric: MetricKey.security_hotspots, value: '2' },