|
|
@@ -0,0 +1,866 @@ |
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP |
|
|
|
|
|
|
|
exports[`should render commentable correctly 1`] = ` |
|
|
|
<div |
|
|
|
className="issue-actions" |
|
|
|
> |
|
|
|
<ul |
|
|
|
className="issue-meta-list" |
|
|
|
> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueType |
|
|
|
canSetType={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [ |
|
|
|
"comment", |
|
|
|
], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
setIssueProperty={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueSeverity |
|
|
|
canSetSeverity={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [ |
|
|
|
"comment", |
|
|
|
], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
setIssueProperty={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueTransition |
|
|
|
hasTransitions={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [ |
|
|
|
"comment", |
|
|
|
], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onChange={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueAssign |
|
|
|
canAssign={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [ |
|
|
|
"comment", |
|
|
|
], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onAssign={[MockFunction]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<IssueCommentAction |
|
|
|
commentAutoTriggered={false} |
|
|
|
commentPlaceholder="" |
|
|
|
issueKey="AVsae-CQS-9G3txfbFN2" |
|
|
|
onChange={[MockFunction]} |
|
|
|
toggleComment={[Function]} |
|
|
|
/> |
|
|
|
</ul> |
|
|
|
<ul |
|
|
|
className="list-inline" |
|
|
|
> |
|
|
|
<li |
|
|
|
className="issue-meta js-issue-tags" |
|
|
|
> |
|
|
|
<IssueTags |
|
|
|
canSetTags={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [ |
|
|
|
"comment", |
|
|
|
], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onChange={[MockFunction]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`should render effort correctly 1`] = ` |
|
|
|
<div |
|
|
|
className="issue-actions" |
|
|
|
> |
|
|
|
<ul |
|
|
|
className="issue-meta-list" |
|
|
|
> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueType |
|
|
|
canSetType={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"effort": "great", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
setIssueProperty={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueSeverity |
|
|
|
canSetSeverity={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"effort": "great", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
setIssueProperty={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueTransition |
|
|
|
hasTransitions={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"effort": "great", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onChange={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueAssign |
|
|
|
canAssign={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"effort": "great", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onAssign={[MockFunction]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<span |
|
|
|
className="issue-meta-label" |
|
|
|
> |
|
|
|
issue.x_effort.great |
|
|
|
</span> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<ul |
|
|
|
className="list-inline" |
|
|
|
> |
|
|
|
<li |
|
|
|
className="issue-meta js-issue-tags" |
|
|
|
> |
|
|
|
<IssueTags |
|
|
|
canSetTags={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"effort": "great", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onChange={[MockFunction]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`should render issue correctly 1`] = ` |
|
|
|
<div |
|
|
|
className="issue-actions" |
|
|
|
> |
|
|
|
<ul |
|
|
|
className="issue-meta-list" |
|
|
|
> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueType |
|
|
|
canSetType={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
setIssueProperty={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueSeverity |
|
|
|
canSetSeverity={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
setIssueProperty={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueTransition |
|
|
|
hasTransitions={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onChange={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueAssign |
|
|
|
canAssign={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onAssign={[MockFunction]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<ul |
|
|
|
className="list-inline" |
|
|
|
> |
|
|
|
<li |
|
|
|
className="issue-meta js-issue-tags" |
|
|
|
> |
|
|
|
<IssueTags |
|
|
|
canSetTags={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "BUG", |
|
|
|
} |
|
|
|
} |
|
|
|
onChange={[MockFunction]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`should render security hotspot correctly 1`] = ` |
|
|
|
<div |
|
|
|
className="issue-actions" |
|
|
|
> |
|
|
|
<ul |
|
|
|
className="issue-meta-list" |
|
|
|
> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueType |
|
|
|
canSetType={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "SECURITY_HOTSPOT", |
|
|
|
} |
|
|
|
} |
|
|
|
setIssueProperty={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
<li |
|
|
|
className="issue-meta" |
|
|
|
> |
|
|
|
<IssueTransition |
|
|
|
hasTransitions={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "SECURITY_HOTSPOT", |
|
|
|
} |
|
|
|
} |
|
|
|
onChange={[Function]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<ul |
|
|
|
className="list-inline" |
|
|
|
> |
|
|
|
<li |
|
|
|
className="issue-meta js-issue-tags" |
|
|
|
> |
|
|
|
<IssueTags |
|
|
|
canSetTags={false} |
|
|
|
isOpen={false} |
|
|
|
issue={ |
|
|
|
Object { |
|
|
|
"actions": Array [], |
|
|
|
"component": "main.js", |
|
|
|
"componentLongName": "main.js", |
|
|
|
"componentQualifier": "FIL", |
|
|
|
"componentUuid": "foo1234", |
|
|
|
"creationDate": "2017-03-01T09:36:01+0100", |
|
|
|
"flows": Array [], |
|
|
|
"fromHotspot": false, |
|
|
|
"key": "AVsae-CQS-9G3txfbFN2", |
|
|
|
"line": 25, |
|
|
|
"message": "Reduce the number of conditional operators (4) used in the expression", |
|
|
|
"organization": "myorg", |
|
|
|
"project": "myproject", |
|
|
|
"projectKey": "foo", |
|
|
|
"projectName": "Foo", |
|
|
|
"projectOrganization": "org", |
|
|
|
"rule": "javascript:S1067", |
|
|
|
"ruleName": "foo", |
|
|
|
"secondaryLocations": Array [], |
|
|
|
"severity": "MAJOR", |
|
|
|
"status": "OPEN", |
|
|
|
"textRange": Object { |
|
|
|
"endLine": 26, |
|
|
|
"endOffset": 15, |
|
|
|
"startLine": 25, |
|
|
|
"startOffset": 0, |
|
|
|
}, |
|
|
|
"transitions": Array [], |
|
|
|
"type": "SECURITY_HOTSPOT", |
|
|
|
} |
|
|
|
} |
|
|
|
onChange={[MockFunction]} |
|
|
|
togglePopup={[MockFunction]} |
|
|
|
/> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
`; |