]> source.dussan.org Git - sonarqube.git/blob
c98ca92f56fa0d6a79807b59deed61a46acba9da
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="component-source-container"
6 >
7   <SourceViewerHeaderSlim
8     branchLike={
9       Object {
10         "analysisDate": "2018-01-01",
11         "excludedFromPurge": true,
12         "isMain": true,
13         "name": "master",
14       }
15     }
16     expandable={true}
17     loading={false}
18     onExpand={[Function]}
19     sourceViewerFile={
20       Object {
21         "key": "foo",
22         "measures": Object {
23           "coverage": "85.2",
24           "duplicationDensity": "1.0",
25           "issues": "12",
26           "lines": "56",
27         },
28         "path": "foo/bar.ts",
29         "project": "my-project",
30         "projectName": "MyProject",
31         "q": "FIL",
32         "uuid": "foo-bar",
33       }
34     }
35   />
36 </div>
37 `;
38
39 exports[`should render correctly line with issue 1`] = `
40 <div
41   className="issue-list"
42 >
43   <Issue
44     branchLike={
45       Object {
46         "analysisDate": "2018-01-01",
47         "excludedFromPurge": true,
48         "isMain": true,
49         "name": "master",
50       }
51     }
52     displayWhyIsThisAnIssue={false}
53     issue={
54       Object {
55         "actions": Array [],
56         "component": "main.js",
57         "componentLongName": "main.js",
58         "componentQualifier": "FIL",
59         "componentUuid": "foo1234",
60         "creationDate": "2017-03-01T09:36:01+0100",
61         "flows": Array [],
62         "fromHotspot": false,
63         "key": "AVsae-CQS-9G3txfbFN2",
64         "line": 25,
65         "message": "Reduce the number of conditional operators (4) used in the expression",
66         "project": "myproject",
67         "projectKey": "foo",
68         "projectName": "Foo",
69         "rule": "javascript:S1067",
70         "ruleName": "foo",
71         "secondaryLocations": Array [],
72         "severity": "MAJOR",
73         "status": "OPEN",
74         "textRange": Object {
75           "endLine": 1,
76           "endOffset": 1,
77           "startLine": 1,
78           "startOffset": 0,
79         },
80         "transitions": Array [],
81         "type": "BUG",
82       }
83     }
84     key="AVsae-CQS-9G3txfbFN2"
85     onChange={[MockFunction]}
86     onClick={[Function]}
87     onPopupToggle={[MockFunction]}
88     selected={true}
89   />
90 </div>
91 `;