]> source.dussan.org Git - sonarqube.git/blob
4d100ae4cf35af9ff7cb0b1ffcad4d0d59dd0302
[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     issue={
53       Object {
54         "actions": Array [],
55         "component": "main.js",
56         "componentLongName": "main.js",
57         "componentQualifier": "FIL",
58         "componentUuid": "foo1234",
59         "creationDate": "2017-03-01T09:36:01+0100",
60         "flows": Array [],
61         "fromHotspot": false,
62         "key": "AVsae-CQS-9G3txfbFN2",
63         "line": 25,
64         "message": "Reduce the number of conditional operators (4) used in the expression",
65         "project": "myproject",
66         "projectKey": "foo",
67         "projectName": "Foo",
68         "rule": "javascript:S1067",
69         "ruleName": "foo",
70         "secondaryLocations": Array [],
71         "severity": "MAJOR",
72         "status": "OPEN",
73         "textRange": Object {
74           "endLine": 1,
75           "endOffset": 1,
76           "startLine": 1,
77           "startOffset": 0,
78         },
79         "transitions": Array [],
80         "type": "BUG",
81       }
82     }
83     key="AVsae-CQS-9G3txfbFN2"
84     onChange={[MockFunction]}
85     onClick={[Function]}
86     onPopupToggle={[MockFunction]}
87     selected={true}
88   />
89 </div>
90 `;