]> source.dussan.org Git - sonarqube.git/blob
4f776d6e497355f377fd4f2a0b900909bb00d8a5
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render issues 1`] = `
4 <div
5   className="issue-list"
6 >
7   <Issue
8     branchLike={
9       {
10         "analysisDate": "2018-01-01",
11         "excludedFromPurge": true,
12         "isMain": false,
13         "name": "branch-6.7",
14       }
15     }
16     displayWhyIsThisAnIssue={true}
17     issue={
18       {
19         "actions": [],
20         "cleanCodeAttribute": "RESPECTFUL",
21         "cleanCodeAttributeCategory": "RESPONSIBLE",
22         "component": "main.js",
23         "componentEnabled": true,
24         "componentLongName": "main.js",
25         "componentQualifier": "FIL",
26         "componentUuid": "foo1234",
27         "creationDate": "2017-03-01T09:36:01+0100",
28         "flows": [],
29         "flowsWithType": [],
30         "impacts": [
31           {
32             "severity": "MEDIUM",
33             "softwareQuality": "MAINTAINABILITY",
34           },
35         ],
36         "key": "issue",
37         "line": 25,
38         "message": "Reduce the number of conditional operators (4) used in the expression",
39         "project": "myproject",
40         "projectKey": "foo",
41         "projectName": "Foo",
42         "rule": "javascript:S1067",
43         "ruleName": "foo",
44         "scope": "MAIN",
45         "secondaryLocations": [],
46         "severity": "MAJOR",
47         "status": "OPEN",
48         "textRange": {
49           "endLine": 26,
50           "endOffset": 15,
51           "startLine": 25,
52           "startOffset": 0,
53         },
54         "transitions": [],
55         "type": "BUG",
56       }
57     }
58     key="issue"
59     onChange={[MockFunction]}
60     onPopupToggle={[MockFunction]}
61     onSelect={[MockFunction]}
62     selected={true}
63   />
64 </div>
65 `;