diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-01-11 17:46:38 +0100 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-01-12 17:37:53 +0100 |
commit | 91dcb7b968fed3eec9d81d1f096ebb936e3b3592 (patch) | |
tree | 701b1ce17eab73405bbdd818f21e89b4da52adad /server/sonar-web/src/main/js/components/issue | |
parent | 572fd173640d6cccad67421e0a3ee80de70aeb84 (diff) | |
download | sonarqube-91dcb7b968fed3eec9d81d1f096ebb936e3b3592.tar.gz sonarqube-91dcb7b968fed3eec9d81d1f096ebb936e3b3592.zip |
update jest & enzyme
Diffstat (limited to 'server/sonar-web/src/main/js/components/issue')
9 files changed, 35 insertions, 23 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.js.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.js.snap index 5823525789c..a95bb5a84c5 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.js.snap @@ -30,8 +30,8 @@ exports[`should open the popup when the button is clicked 2`] = ` "assigneeName": "John Doe", } } - onFail={[Function]} - onSelect={[Function]} + onFail={[MockFunction]} + onSelect={[MockFunction]} /> } position="bottomleft" @@ -77,8 +77,8 @@ exports[`should render with the action 1`] = ` "assigneeName": "John Doe", } } - onFail={[Function]} - onSelect={[Function]} + onFail={[MockFunction]} + onSelect={[MockFunction]} /> } position="bottomleft" diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap index 30f81a378f2..121ff82e65c 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.js.snap @@ -21,7 +21,7 @@ exports[`should open the popup when the button is clicked 2`] = ` "key": "issuekey", } } - onFail={[Function]} + onFail={[MockFunction]} /> } position="bottomright" @@ -67,7 +67,7 @@ exports[`should render correctly 1`] = ` "key": "issuekey", } } - onFail={[Function]} + onFail={[MockFunction]} /> } position="bottomright" diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentAction-test.js.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentAction-test.js.snap index 13f54108ff2..7305e5d8472 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentAction-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentAction-test.js.snap @@ -11,11 +11,23 @@ exports[`should open the popup when the button is clicked 1`] = ` customClass="issue-comment-bubble-popup" onComment={[Function]} placeholder={undefined} - toggleComment={[Function]} + toggleComment={ + [MockFunction] { + "calls": Array [ + Array [], + ], + } + } /> } position="bottomleft" - togglePopup={[Function]} + togglePopup={ + [MockFunction] { + "calls": Array [ + Array [], + ], + } + } > <button className="button-link issue-action js-issue-comment" @@ -42,11 +54,11 @@ exports[`should render correctly 1`] = ` customClass="issue-comment-bubble-popup" onComment={[Function]} placeholder={undefined} - toggleComment={[Function]} + toggleComment={[MockFunction]} /> } position="bottomleft" - togglePopup={[Function]} + togglePopup={[MockFunction]} > <button className="button-link issue-action js-issue-comment" diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTags-test.js.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTags-test.js.snap index 6cfa1ab8ea8..055531ca38d 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTags-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTags-test.js.snap @@ -23,7 +23,7 @@ exports[`should open the popup when the button is clicked 2`] = ` isOpen={true} popup={ <SetIssueTagsPopup - onFail={[Function]} + onFail={[MockFunction]} organization="foo" selectedTags={ Array [ @@ -59,7 +59,7 @@ exports[`should render with the action 1`] = ` isOpen={false} popup={ <SetIssueTagsPopup - onFail={[Function]} + onFail={[MockFunction]} organization="foo" selectedTags={ Array [ diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.js.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.js.snap index edb836a3834..d9f6c77f6b9 100644 --- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.js.snap @@ -48,8 +48,8 @@ exports[`should render the titlebar correctly 1`] = ` }, } } - onFail={[Function]} - togglePopup={[Function]} + onFail={[MockFunction]} + togglePopup={[MockFunction]} /> </li> <li @@ -132,8 +132,8 @@ exports[`should render the titlebar with the filter 1`] = ` }, } } - onFail={[Function]} - togglePopup={[Function]} + onFail={[MockFunction]} + togglePopup={[MockFunction]} /> </li> <li @@ -195,9 +195,9 @@ exports[`should render the titlebar with the filter 1`] = ` }, } } - onFail={[Function]} - onFilter={[Function]} - togglePopup={[Function]} + onFail={[MockFunction]} + onFilter={[MockFunction]} + togglePopup={[MockFunction]} /> </li> </ul> diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/CommentDeletePopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/CommentDeletePopup-test.js.snap index 39049c8b656..634b35907be 100644 --- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/CommentDeletePopup-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/CommentDeletePopup-test.js.snap @@ -14,7 +14,7 @@ exports[`should render the comment delete popup correctly 1`] = ` </div> <button className="button-red" - onClick={[Function]} + onClick={[MockFunction]} > delete </button> diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap index bc4c8e02c7f..f5cc9cfed81 100644 --- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap @@ -15,7 +15,7 @@ exports[`should render tags popup correctly 1`] = ` "INFO", ] } - onSelect={[Function]} + onSelect={[MockFunction]} > <SelectListItem item="BLOCKER" diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap index 4c67a6da4ec..2b0be175cbe 100644 --- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap @@ -14,7 +14,7 @@ exports[`should render tags popup correctly 1`] = ` "wontfix", ] } - onSelect={[Function]} + onSelect={[MockFunction]} > <SelectListItem item="confirm" diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap index 6313549adb2..190d91cb61b 100644 --- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap +++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap @@ -13,7 +13,7 @@ exports[`should render tags popup correctly 1`] = ` "CODE_SMELL", ] } - onSelect={[Function]} + onSelect={[MockFunction]} > <SelectListItem item="BUG" |