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 | |
parent | 572fd173640d6cccad67421e0a3ee80de70aeb84 (diff) | |
download | sonarqube-91dcb7b968fed3eec9d81d1f096ebb936e3b3592.tar.gz sonarqube-91dcb7b968fed3eec9d81d1f096ebb936e3b3592.zip |
update jest & enzyme
Diffstat (limited to 'server/sonar-web/src/main')
68 files changed, 310 insertions, 251 deletions
diff --git a/server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap b/server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap index eaaccb8f0a1..972930cce48 100644 --- a/server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap +++ b/server/sonar-web/src/main/js/app/components/help/__tests__/__snapshots__/GlobalHelp-test.js.snap @@ -4,7 +4,7 @@ exports[`does not show tutorials for anonymous 1`] = ` <Modal contentLabel="help" medium={true} - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <div className="modal-head" diff --git a/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.js.snap b/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.js.snap index 57349cfbdf5..0a9d6781bf0 100644 --- a/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.js.snap +++ b/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.js.snap @@ -13,7 +13,7 @@ exports[`renders favorite 1`] = ` <Link className="navbar-search-item-link" data-key="foo" - onClick={[Function]} + onClick={[MockFunction]} onMouseEnter={[Function]} onlyActiveOnIndex={false} style={Object {}} @@ -62,7 +62,7 @@ exports[`renders match 1`] = ` <Link className="navbar-search-item-link" data-key="foo" - onClick={[Function]} + onClick={[MockFunction]} onMouseEnter={[Function]} onlyActiveOnIndex={false} style={Object {}} @@ -110,7 +110,7 @@ exports[`renders organizations 1`] = ` <Link className="navbar-search-item-link" data-key="foo" - onClick={[Function]} + onClick={[MockFunction]} onMouseEnter={[Function]} onlyActiveOnIndex={false} style={Object {}} @@ -163,7 +163,7 @@ exports[`renders organizations 2`] = ` <Link className="navbar-search-item-link" data-key="foo" - onClick={[Function]} + onClick={[MockFunction]} onMouseEnter={[Function]} onlyActiveOnIndex={false} style={Object {}} @@ -211,7 +211,7 @@ exports[`renders projects 1`] = ` <Link className="navbar-search-item-link" data-key="qwe" - onClick={[Function]} + onClick={[MockFunction]} onMouseEnter={[Function]} onlyActiveOnIndex={false} style={Object {}} @@ -264,7 +264,7 @@ exports[`renders recently browsed 1`] = ` <Link className="navbar-search-item-link" data-key="foo" - onClick={[Function]} + onClick={[MockFunction]} onMouseEnter={[Function]} onlyActiveOnIndex={false} style={Object {}} @@ -312,7 +312,7 @@ exports[`renders selected 1`] = ` <Link className="navbar-search-item-link" data-key="foo" - onClick={[Function]} + onClick={[MockFunction]} onMouseEnter={[Function]} onlyActiveOnIndex={false} style={Object {}} @@ -358,7 +358,7 @@ exports[`renders selected 2`] = ` <Link className="navbar-search-item-link" data-key="foo" - onClick={[Function]} + onClick={[MockFunction]} onMouseEnter={[Function]} onlyActiveOnIndex={false} style={Object {}} diff --git a/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResults-test.js.snap b/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResults-test.js.snap index aa88bea94d8..432b5562168 100644 --- a/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResults-test.js.snap +++ b/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResults-test.js.snap @@ -24,8 +24,8 @@ exports[`renders "Show More" link 1`] = ` allowMore={true} key="more-TRK" loadingMore={null} - onMoreClick={[Function]} - onSelect={[Function]} + onMoreClick={[MockFunction]} + onSelect={[MockFunction]} qualifier="TRK" selected={false} /> diff --git a/server/sonar-web/src/main/js/apps/account/notifications/__tests__/__snapshots__/GlobalNotifications-test.js.snap b/server/sonar-web/src/main/js/apps/account/notifications/__tests__/__snapshots__/GlobalNotifications-test.js.snap index 64a62011d96..3d21dbbdf2a 100644 --- a/server/sonar-web/src/main/js/apps/account/notifications/__tests__/__snapshots__/GlobalNotifications-test.js.snap +++ b/server/sonar-web/src/main/js/apps/account/notifications/__tests__/__snapshots__/GlobalNotifications-test.js.snap @@ -58,8 +58,8 @@ exports[`should match snapshot 1`] = ` }, ] } - onAdd={[Function]} - onRemove={[Function]} + onAdd={[MockFunction]} + onRemove={[MockFunction]} types={ Array [ "type1", diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/ScannerContext-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/ScannerContext-test.tsx.snap index 8aac352340c..dc47f7e97c5 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/ScannerContext-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/ScannerContext-test.tsx.snap @@ -4,7 +4,7 @@ exports[`renders 1`] = ` <Modal contentLabel="scanner context" large={true} - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <div className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Stacktrace-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Stacktrace-test.tsx.snap index 5e3d7a5a25f..3c3c6519c93 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Stacktrace-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Stacktrace-test.tsx.snap @@ -4,7 +4,7 @@ exports[`renders 1`] = ` <Modal contentLabel="stacktrace" large={true} - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <div className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Task-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Task-test.tsx.snap index 0fab9afcace..36c6d8c522f 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Task-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Task-test.tsx.snap @@ -33,8 +33,8 @@ exports[`renders 1`] = ` /> <TaskExecutionTime /> <TaskActions - onCancelTask={[Function]} - onFilterTask={[Function]} + onCancelTask={[MockFunction]} + onFilterTask={[MockFunction]} task={ Object { "componentName": "foo", diff --git a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.js.snap b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.js.snap index 5fe2d0a4e5d..d41358928d1 100644 --- a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.js.snap +++ b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.js.snap @@ -5,7 +5,7 @@ exports[`should render 1`] = ` <ConciseIssueComponent /> <ConciseIssueBox issue={Object {}} - onClick={[Function]} + onClick={[MockFunction]} selected={false} selectedFlowIndex={null} selectedLocationIndex={null} diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/LicenseEditionForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/LicenseEditionForm-test.tsx.snap index c70a6a6abb0..9c3d5970d11 100644 --- a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/LicenseEditionForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/LicenseEditionForm-test.tsx.snap @@ -3,7 +3,7 @@ exports[`should display correctly 1`] = ` <Modal contentLabel="marketplace.upgrade_to_x.Foo" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/UninstallEditionForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/UninstallEditionForm-test.tsx.snap index 0493fdbf245..06d57cb8f6f 100644 --- a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/UninstallEditionForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/UninstallEditionForm-test.tsx.snap @@ -3,7 +3,7 @@ exports[`should display correctly 1`] = ` <Modal contentLabel="marketplace.downgrade_to_community_edition." - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/MembersListHeader-test.js.snap b/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/MembersListHeader-test.js.snap index 42461a5120c..7bfe2725e60 100644 --- a/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/MembersListHeader-test.js.snap +++ b/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/MembersListHeader-test.js.snap @@ -6,7 +6,7 @@ exports[`should render with the total 1`] = ` > <SearchBox minLength={2} - onChange={[Function]} + onChange={[MockFunction]} placeholder="search.search_for_users" /> <span @@ -27,7 +27,7 @@ exports[`should render without the total 1`] = ` > <SearchBox minLength={2} - onChange={[Function]} + onChange={[MockFunction]} placeholder="search.search_for_users" /> </div> diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/App-test.tsx.snap index e9d41bf777e..1c14e27cdbe 100644 --- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/App-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/App-test.tsx.snap @@ -79,7 +79,7 @@ exports[`renders sorted list of branches 1`] = ` } component="foo" key="master" - onChange={[Function]} + onChange={[MockFunction]} /> <BranchRow branch={ @@ -92,7 +92,7 @@ exports[`renders sorted list of branches 1`] = ` } component="foo" key="branch-1.0" - onChange={[Function]} + onChange={[MockFunction]} /> <BranchRow branch={ @@ -104,7 +104,7 @@ exports[`renders sorted list of branches 1`] = ` } component="foo" key="branch-1.0" - onChange={[Function]} + onChange={[MockFunction]} /> </tbody> </table> diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/DeleteBranchModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/DeleteBranchModal-test.tsx.snap index 0cfc9a4ebb6..8571673e611 100644 --- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/DeleteBranchModal-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/DeleteBranchModal-test.tsx.snap @@ -3,7 +3,7 @@ exports[`renders 1`] = ` <Modal contentLabel="branches.delete" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -44,7 +44,7 @@ exports[`renders 1`] = ` exports[`renders 2`] = ` <Modal contentLabel="branches.delete" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LongBranchesPatternForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LongBranchesPatternForm-test.tsx.snap index d75d4297d92..07725582cdf 100644 --- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LongBranchesPatternForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LongBranchesPatternForm-test.tsx.snap @@ -3,7 +3,7 @@ exports[`renders 1`] = ` <Modal contentLabel="branches.detection_of_long_living_branches" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -13,8 +13,8 @@ exports[`renders 1`] = ` </h2> </header> <SettingForm - onChange={[Function]} - onClose={[Function]} + onChange={[MockFunction]} + onClose={[MockFunction]} project="project" setting={ Object { diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/RenameBranchModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/RenameBranchModal-test.tsx.snap index 5df1cc12dcf..2960f04d2d9 100644 --- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/RenameBranchModal-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/RenameBranchModal-test.tsx.snap @@ -3,7 +3,7 @@ exports[`renders 1`] = ` <Modal contentLabel="branches.rename" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -67,7 +67,7 @@ exports[`renders 1`] = ` exports[`renders 2`] = ` <Modal contentLabel="branches.rename" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -131,7 +131,7 @@ exports[`renders 2`] = ` exports[`renders 3`] = ` <Modal contentLabel="branches.rename" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/Table-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/Table-test.tsx.snap index b77fae2826b..a64ebb3f105 100644 --- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/Table-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/Table-test.tsx.snap @@ -27,7 +27,7 @@ exports[`renders 1`] = ` <tbody> <ProfileRow key="java" - onChangeProfile={[Function]} + onChangeProfile={[MockFunction]} possibleProfiles={ Array [ Object { @@ -73,7 +73,7 @@ exports[`renders 1`] = ` /> <ProfileRow key="js" - onChangeProfile={[Function]} + onChangeProfile={[MockFunction]} possibleProfiles={ Array [ Object { diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap index 75cede0fa15..0f745872f11 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap @@ -6,18 +6,18 @@ exports[`should render correctly 1`] = ` > <PerspectiveSelect className="projects-topbar-item js-projects-perspective-select" - onChange={[Function]} + onChange={[MockFunction]} view="overall" /> <ProjectsSortingSelect className="projects-topbar-item js-projects-sorting-select" defaultOption="analysis_date" - onChange={[Function]} + onChange={[MockFunction]} selectedSort="size" view="overall" /> <SearchFilterContainer - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "search": "test", @@ -46,18 +46,18 @@ exports[`should render correctly while loading 1`] = ` > <PerspectiveSelect className="projects-topbar-item js-projects-perspective-select" - onChange={[Function]} + onChange={[MockFunction]} view="overall" /> <ProjectsSortingSelect className="projects-topbar-item js-projects-sorting-select" defaultOption="analysis_date" - onChange={[Function]} + onChange={[MockFunction]} selectedSort="size" view="overall" /> <SearchFilterContainer - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "search": "test", @@ -89,7 +89,7 @@ exports[`should render disabled sorting options for visualizations 1`] = ` > <PerspectiveSelect className="projects-topbar-item js-projects-perspective-select" - onChange={[Function]} + onChange={[MockFunction]} view="visualizations" visualization="coverage" /> @@ -103,14 +103,14 @@ exports[`should render disabled sorting options for visualizations 1`] = ` <ProjectsSortingSelect className="js-projects-sorting-select" defaultOption="analysis_date" - onChange={[Function]} + onChange={[MockFunction]} selectedSort="size" view="visualizations" /> </div> </Tooltip> <SearchFilterContainer - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "search": "test", @@ -127,7 +127,7 @@ exports[`should render switch the default sorting option for anonymous users 1`] <ProjectsSortingSelect className="projects-topbar-item js-projects-sorting-select" defaultOption="name" - onChange={[Function]} + onChange={[MockFunction]} selectedSort="size" view="overall" /> @@ -137,7 +137,7 @@ exports[`should render switch the default sorting option for anonymous users 2`] <ProjectsSortingSelect className="projects-topbar-item js-projects-sorting-select" defaultOption="analysis_date" - onChange={[Function]} + onChange={[MockFunction]} selectedSort="size" view="leak" /> diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap index 2ff7b55d83b..08094081128 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageSidebar-test.tsx.snap @@ -17,7 +17,7 @@ exports[`should render \`leak\` view correctly 1`] = ` </h3> </div> <QualityGateFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -26,7 +26,7 @@ exports[`should render \`leak\` view correctly 1`] = ` /> <React.Fragment> <NewReliabilityFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -34,7 +34,7 @@ exports[`should render \`leak\` view correctly 1`] = ` } /> <NewSecurityFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -42,7 +42,7 @@ exports[`should render \`leak\` view correctly 1`] = ` } /> <NewMaintainabilityFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -50,7 +50,7 @@ exports[`should render \`leak\` view correctly 1`] = ` } /> <NewCoverageFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -58,7 +58,7 @@ exports[`should render \`leak\` view correctly 1`] = ` } /> <NewDuplicationsFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -66,7 +66,7 @@ exports[`should render \`leak\` view correctly 1`] = ` } /> <NewLinesFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -75,7 +75,7 @@ exports[`should render \`leak\` view correctly 1`] = ` /> </React.Fragment> <Connect(LanguagesFilter) - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -83,7 +83,7 @@ exports[`should render \`leak\` view correctly 1`] = ` } /> <TagsFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "view": "leak", @@ -100,14 +100,14 @@ exports[`should render correctly 1`] = ` className="projects-facets-header clearfix" > <ClearAll - onClearAll={[Function]} + onClearAll={[MockFunction]} /> <h3> filters </h3> </div> <QualityGateFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", @@ -116,7 +116,7 @@ exports[`should render correctly 1`] = ` /> <React.Fragment> <ReliabilityFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", @@ -124,7 +124,7 @@ exports[`should render correctly 1`] = ` } /> <SecurityFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", @@ -132,7 +132,7 @@ exports[`should render correctly 1`] = ` } /> <MaintainabilityFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", @@ -140,7 +140,7 @@ exports[`should render correctly 1`] = ` } /> <CoverageFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", @@ -148,7 +148,7 @@ exports[`should render correctly 1`] = ` } /> <DuplicationsFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", @@ -156,7 +156,7 @@ exports[`should render correctly 1`] = ` } /> <SizeFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", @@ -166,7 +166,7 @@ exports[`should render correctly 1`] = ` /> </React.Fragment> <Connect(LanguagesFilter) - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", @@ -174,7 +174,7 @@ exports[`should render correctly 1`] = ` } /> <TagsFilter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} query={ Object { "size": "3", diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap index 49e49f3c84c..1c61cac529c 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap @@ -10,7 +10,7 @@ exports[`renders 1`] = ` } highlightUnder={1} highlightUnderMax={5} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ 1, diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap index f70e42fab8f..255bd60899e 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap @@ -10,7 +10,7 @@ exports[`renders 1`] = ` } highlightUnder={1} highlightUnderMax={5} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ 1, diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap index 64939661984..f9794832bdd 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap @@ -9,7 +9,7 @@ exports[`renders 1`] = ` /> } highlightUnder={1} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ 1, diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap index f599e813c5d..bbaf619be4f 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap @@ -12,7 +12,7 @@ exports[`should render maximum 10 languages in the searchbox results 1`] = ` } footer={ <SearchableFilterFooter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ Object { @@ -75,7 +75,7 @@ exports[`should render maximum 10 languages in the searchbox results 1`] = ` name="projects.facets.languages" /> } - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ "java", @@ -114,7 +114,7 @@ exports[`should render the languages facet with the selected languages 1`] = ` } footer={ <SearchableFilterFooter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ Object { @@ -149,7 +149,7 @@ exports[`should render the languages facet with the selected languages 1`] = ` name="projects.facets.languages" /> } - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ "java", @@ -267,7 +267,7 @@ exports[`should render the languages facet with the selected languages 2`] = ` </a> </div> <SearchableFilterFooter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ Object { @@ -308,7 +308,7 @@ exports[`should render the languages without the ones in the facet 1`] = ` } footer={ <SearchableFilterFooter - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ Object { @@ -340,7 +340,7 @@ exports[`should render the languages without the ones in the facet 1`] = ` name="projects.facets.languages" /> } - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ "java", diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/MaintainabilityFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/MaintainabilityFilter-test.tsx.snap index ffa5b740b76..1868c31fa51 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/MaintainabilityFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/MaintainabilityFilter-test.tsx.snap @@ -15,7 +15,7 @@ exports[`renders 1`] = ` </span> } name="Maintainability" - onQueryChange={[Function]} + onQueryChange={[MockFunction]} property="maintainability" query={Object {}} /> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewCoverageFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewCoverageFilter-test.tsx.snap index b9972e1255e..11e95aab04c 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewCoverageFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewCoverageFilter-test.tsx.snap @@ -3,7 +3,7 @@ exports[`renders 1`] = ` <CoverageFilter className="leak-facet-box" - onQueryChange={[Function]} + onQueryChange={[MockFunction]} property="new_coverage" query={Object {}} /> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewDuplicationsFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewDuplicationsFilter-test.tsx.snap index 2f5c0bb6e71..91a1620bb86 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewDuplicationsFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewDuplicationsFilter-test.tsx.snap @@ -3,7 +3,7 @@ exports[`renders 1`] = ` <DuplicationsFilter className="leak-facet-box" - onQueryChange={[Function]} + onQueryChange={[MockFunction]} property="new_duplications" query={Object {}} /> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap index d2de9bc1ea4..bb776a87a60 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap @@ -10,7 +10,7 @@ exports[`renders 1`] = ` /> } highlightUnder={1} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ 1, diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewMaintainabilityFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewMaintainabilityFilter-test.tsx.snap index c1d5ebaf375..847e466d22d 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewMaintainabilityFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewMaintainabilityFilter-test.tsx.snap @@ -16,7 +16,7 @@ exports[`renders 1`] = ` </span> } name="Maintainability" - onQueryChange={[Function]} + onQueryChange={[MockFunction]} property="new_maintainability" query={Object {}} /> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewReliabilityFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewReliabilityFilter-test.tsx.snap index 0a10f640261..4e2ada64cb3 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewReliabilityFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewReliabilityFilter-test.tsx.snap @@ -16,7 +16,7 @@ exports[`renders 1`] = ` </span> } name="Reliability" - onQueryChange={[Function]} + onQueryChange={[MockFunction]} property="new_reliability" query={Object {}} /> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewSecurityFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewSecurityFilter-test.tsx.snap index 493fcad02e5..18c0cfc374e 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewSecurityFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewSecurityFilter-test.tsx.snap @@ -16,7 +16,7 @@ exports[`renders 1`] = ` </span> } name="Security" - onQueryChange={[Function]} + onQueryChange={[MockFunction]} property="new_security" query={Object {}} /> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap index 3b75ce1ab21..a3e2df44741 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap @@ -8,7 +8,7 @@ exports[`renders 1`] = ` name="projects.facets.quality_gate" /> } - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ "OK", diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/ReliabilityFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/ReliabilityFilter-test.tsx.snap index a846594a324..19573d138a4 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/ReliabilityFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/ReliabilityFilter-test.tsx.snap @@ -15,7 +15,7 @@ exports[`renders 1`] = ` </span> } name="Reliability" - onQueryChange={[Function]} + onQueryChange={[MockFunction]} property="reliability" query={Object {}} /> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityFilter-test.tsx.snap index 693c67c08ab..3dd4b038e39 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityFilter-test.tsx.snap @@ -15,7 +15,7 @@ exports[`renders 1`] = ` </span> } name="Security" - onQueryChange={[Function]} + onQueryChange={[MockFunction]} property="security" query={Object {}} /> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap index dd4378985d6..135024ac542 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap @@ -9,7 +9,7 @@ exports[`renders 1`] = ` /> } highlightUnder={1} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ 1, diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap index d28245d7c59..5bec18a1ba2 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap @@ -15,7 +15,7 @@ exports[`should render maximum 10 tags in the searchbox results 1`] = ` isLoading={false} onInputChange={[Function]} onOpen={[Function]} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ Object { @@ -78,7 +78,7 @@ exports[`should render maximum 10 tags in the searchbox results 1`] = ` name="projects.facets.tags" /> } - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ "lang", @@ -120,7 +120,7 @@ exports[`should render the tags facet with the selected tags 1`] = ` isLoading={false} onInputChange={[Function]} onOpen={[Function]} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={Array []} organization={undefined} property="tags" @@ -140,7 +140,7 @@ exports[`should render the tags facet with the selected tags 1`] = ` name="projects.facets.tags" /> } - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ "lang", @@ -243,7 +243,7 @@ exports[`should render the tags facet with the selected tags 2`] = ` isLoading={false} onInputChange={[Function]} onOpen={[Function]} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={Array []} property="tags" query={ @@ -272,7 +272,7 @@ exports[`should render the tags without the ones in the facet 1`] = ` isLoading={false} onInputChange={[Function]} onOpen={[Function]} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={Array []} organization={undefined} property="tags" @@ -289,7 +289,7 @@ exports[`should render the tags without the ones in the facet 1`] = ` name="projects.facets.tags" /> } - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ "lang", @@ -321,7 +321,7 @@ exports[`should render the tags without the ones in the facet 2`] = ` isLoading={false} onInputChange={[Function]} onOpen={[Function]} - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ Object { @@ -353,7 +353,7 @@ exports[`should render the tags without the ones in the facet 2`] = ` name="projects.facets.tags" /> } - onQueryChange={[Function]} + onQueryChange={[MockFunction]} options={ Array [ "lang", diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap index 960502692b6..fc6070810f9 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap @@ -3,7 +3,7 @@ exports[`bulk applies template to all results 1`] = ` <Modal contentLabel="permission_templates.bulk_apply_permission_template" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -36,7 +36,7 @@ exports[`bulk applies template to all results 1`] = ` exports[`bulk applies template to all results 2`] = ` <Modal contentLabel="permission_templates.bulk_apply_permission_template" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -111,7 +111,7 @@ exports[`bulk applies template to all results 2`] = ` exports[`bulk applies template to all results 3`] = ` <Modal contentLabel="permission_templates.bulk_apply_permission_template" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -189,7 +189,7 @@ exports[`bulk applies template to all results 3`] = ` exports[`bulk applies template to all results 4`] = ` <Modal contentLabel="permission_templates.bulk_apply_permission_template" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -224,7 +224,7 @@ exports[`bulk applies template to all results 4`] = ` exports[`bulk applies template to selected results 1`] = ` <Modal contentLabel="permission_templates.bulk_apply_permission_template" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -257,7 +257,7 @@ exports[`bulk applies template to selected results 1`] = ` exports[`bulk applies template to selected results 2`] = ` <Modal contentLabel="permission_templates.bulk_apply_permission_template" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -332,7 +332,7 @@ exports[`bulk applies template to selected results 2`] = ` exports[`bulk applies template to selected results 3`] = ` <Modal contentLabel="permission_templates.bulk_apply_permission_template" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -410,7 +410,7 @@ exports[`bulk applies template to selected results 3`] = ` exports[`bulk applies template to selected results 4`] = ` <Modal contentLabel="permission_templates.bulk_apply_permission_template" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap index 1ab30336149..c2471bfc944 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap @@ -3,7 +3,7 @@ exports[`changes visibility 1`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -100,7 +100,7 @@ exports[`changes visibility 1`] = ` exports[`changes visibility 2`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -197,7 +197,7 @@ exports[`changes visibility 2`] = ` exports[`renders disabled 1`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap index 0a24881df61..71af5dfa82d 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap @@ -3,7 +3,7 @@ exports[`creates project 1`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <form id="create-project-form" @@ -122,7 +122,7 @@ exports[`creates project 1`] = ` exports[`creates project 2`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <form id="create-project-form" @@ -241,7 +241,7 @@ exports[`creates project 2`] = ` exports[`creates project 3`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <form id="create-project-form" @@ -363,7 +363,7 @@ exports[`creates project 3`] = ` exports[`creates project 4`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <div> <header @@ -422,7 +422,7 @@ exports[`creates project 4`] = ` exports[`shows more 1`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <form id="create-project-form" @@ -541,7 +541,7 @@ exports[`shows more 1`] = ` exports[`shows more 2`] = ` <Modal contentLabel="modal form" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <form id="create-project-form" diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap index d33cef35d25..77ea7ac64fc 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap @@ -3,7 +3,7 @@ exports[`deletes all projects 1`] = ` <Modal contentLabel="qualifiers.delete.TRK" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -49,7 +49,7 @@ exports[`deletes all projects 1`] = ` exports[`deletes all projects 2`] = ` <Modal contentLabel="qualifiers.delete.TRK" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -98,7 +98,7 @@ exports[`deletes all projects 2`] = ` exports[`deletes selected projects 1`] = ` <Modal contentLabel="qualifiers.delete.TRK" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -144,7 +144,7 @@ exports[`deletes selected projects 1`] = ` exports[`deletes selected projects 2`] = ` <Modal contentLabel="qualifiers.delete.TRK" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap index e001d3f7298..aefc34315dd 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap @@ -3,7 +3,7 @@ exports[`changes default visibility 1`] = ` <ChangeVisibilityForm onClose={[Function]} - onConfirm={[Function]} + onConfirm={[MockFunction]} organization={ Object { "key": "org", diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap index 49178bc7abd..7c62905a04c 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap @@ -70,7 +70,7 @@ exports[`renders 1`] = ` "login": "foo", } } - onApplyTemplate={[Function]} + onApplyTemplate={[MockFunction]} project={ Object { "key": "project", @@ -152,7 +152,7 @@ exports[`renders 2`] = ` "login": "foo", } } - onApplyTemplate={[Function]} + onApplyTemplate={[MockFunction]} project={ Object { "key": "project", diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap index 254a3215e07..15ccbea3e9b 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap @@ -88,7 +88,7 @@ exports[`render qualifiers filter 1`] = ` inputClassName="input-medium" maxDate="+0" name="analyzed-before" - onChange={[Function]} + onChange={[MockFunction]} placeholder="last_analysis_before" /> </td> @@ -99,7 +99,7 @@ exports[`render qualifiers filter 1`] = ` checked={false} className="link-checkbox-control" id="projects-provisioned" - onCheck={[Function]} + onCheck={[MockFunction]} thirdState={false} > <span @@ -122,7 +122,7 @@ exports[`render qualifiers filter 1`] = ` > <SearchBox minLength={3} - onChange={[Function]} + onChange={[MockFunction]} placeholder="search.search_by_name_or_key" value="" /> @@ -178,7 +178,7 @@ exports[`renders 1`] = ` inputClassName="input-medium" maxDate="+0" name="analyzed-before" - onChange={[Function]} + onChange={[MockFunction]} placeholder="last_analysis_before" /> </td> @@ -189,7 +189,7 @@ exports[`renders 1`] = ` checked={false} className="link-checkbox-control" id="projects-provisioned" - onCheck={[Function]} + onCheck={[MockFunction]} thirdState={false} > <span @@ -212,7 +212,7 @@ exports[`renders 1`] = ` > <SearchBox minLength={3} - onChange={[Function]} + onChange={[MockFunction]} placeholder="search.search_by_name_or_key" value="" /> diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap index 85f0f92c7a5..57001b3e68d 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap @@ -10,7 +10,7 @@ exports[`renders with edit permission 1`] = ` > <ProfileRules exporters={Array []} - onRequestFail={[Function]} + onRequestFail={[MockFunction]} organization="org" profile={ Object { @@ -20,11 +20,11 @@ exports[`renders with edit permission 1`] = ` } } profiles={Array []} - updateProfiles={[Function]} + updateProfiles={[MockFunction]} /> <ProfileExporters exporters={Array []} - onRequestFail={[Function]} + onRequestFail={[MockFunction]} organization="org" profile={ Object { @@ -34,7 +34,7 @@ exports[`renders with edit permission 1`] = ` } } profiles={Array []} - updateProfiles={[Function]} + updateProfiles={[MockFunction]} /> <ProfilePermissions organization="org" @@ -52,7 +52,7 @@ exports[`renders with edit permission 1`] = ` > <ProfileInheritance exporters={Array []} - onRequestFail={[Function]} + onRequestFail={[MockFunction]} organization="org" profile={ Object { @@ -62,11 +62,11 @@ exports[`renders with edit permission 1`] = ` } } profiles={Array []} - updateProfiles={[Function]} + updateProfiles={[MockFunction]} /> <ProfileProjects exporters={Array []} - onRequestFail={[Function]} + onRequestFail={[MockFunction]} organization="org" profile={ Object { @@ -76,7 +76,7 @@ exports[`renders with edit permission 1`] = ` } } profiles={Array []} - updateProfiles={[Function]} + updateProfiles={[MockFunction]} /> </div> </div> @@ -93,19 +93,19 @@ exports[`renders without permissions 1`] = ` > <ProfileRules exporters={Array []} - onRequestFail={[Function]} + onRequestFail={[MockFunction]} organization="org" profile={Object {}} profiles={Array []} - updateProfiles={[Function]} + updateProfiles={[MockFunction]} /> <ProfileExporters exporters={Array []} - onRequestFail={[Function]} + onRequestFail={[MockFunction]} organization="org" profile={Object {}} profiles={Array []} - updateProfiles={[Function]} + updateProfiles={[MockFunction]} /> </div> <div @@ -113,19 +113,19 @@ exports[`renders without permissions 1`] = ` > <ProfileInheritance exporters={Array []} - onRequestFail={[Function]} + onRequestFail={[MockFunction]} organization="org" profile={Object {}} profiles={Array []} - updateProfiles={[Function]} + updateProfiles={[MockFunction]} /> <ProfileProjects exporters={Array []} - onRequestFail={[Function]} + onRequestFail={[MockFunction]} organization="org" profile={Object {}} profiles={Array []} - updateProfiles={[Function]} + updateProfiles={[MockFunction]} /> </div> </div> diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap index dcce712ae8a..a4e51e5f160 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap @@ -3,7 +3,7 @@ exports[`adds group 1`] = ` <Modal contentLabel="quality_profiles.grant_permissions_to_user_or_group" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -41,7 +41,7 @@ exports[`adds group 1`] = ` </button> <button className="button-link" - onClick={[Function]} + onClick={[MockFunction]} type="reset" > cancel @@ -54,7 +54,7 @@ exports[`adds group 1`] = ` exports[`adds group 2`] = ` <Modal contentLabel="quality_profiles.grant_permissions_to_user_or_group" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -97,7 +97,7 @@ exports[`adds group 2`] = ` </button> <button className="button-link" - onClick={[Function]} + onClick={[MockFunction]} type="reset" > cancel @@ -110,7 +110,7 @@ exports[`adds group 2`] = ` exports[`adds group 3`] = ` <Modal contentLabel="quality_profiles.grant_permissions_to_user_or_group" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -156,7 +156,7 @@ exports[`adds group 3`] = ` </button> <button className="button-link" - onClick={[Function]} + onClick={[MockFunction]} type="reset" > cancel @@ -169,7 +169,7 @@ exports[`adds group 3`] = ` exports[`adds user 1`] = ` <Modal contentLabel="quality_profiles.grant_permissions_to_user_or_group" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -207,7 +207,7 @@ exports[`adds user 1`] = ` </button> <button className="button-link" - onClick={[Function]} + onClick={[MockFunction]} type="reset" > cancel @@ -220,7 +220,7 @@ exports[`adds user 1`] = ` exports[`adds user 2`] = ` <Modal contentLabel="quality_profiles.grant_permissions_to_user_or_group" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -263,7 +263,7 @@ exports[`adds user 2`] = ` </button> <button className="button-link" - onClick={[Function]} + onClick={[MockFunction]} type="reset" > cancel @@ -276,7 +276,7 @@ exports[`adds user 2`] = ` exports[`adds user 3`] = ` <Modal contentLabel="quality_profiles.grant_permissions_to_user_or_group" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <header className="modal-head" @@ -322,7 +322,7 @@ exports[`adds user 3`] = ` </button> <button className="button-link" - onClick={[Function]} + onClick={[MockFunction]} type="reset" > cancel diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap index 15cbb3f39fb..f5bac4cb5b3 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap @@ -8,7 +8,7 @@ exports[`renders 1`] = ` filterOptions={[Function]} isLoading={true} noResultsText="no_results" - onChange={[Function]} + onChange={[MockFunction]} onInputChange={[Function]} optionRenderer={[Function]} options={Array []} diff --git a/server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap index 2530d3b3b8d..230aaf0a0a4 100644 --- a/server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap @@ -3,7 +3,7 @@ exports[`should display correctly 1`] = ` <Modal contentLabel="system.system_upgrade" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <div className="modal-head" diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/NewOrganizationForm-test.js.snap b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/NewOrganizationForm-test.js.snap index 8386f670119..40da82493a8 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/NewOrganizationForm-test.js.snap +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/NewOrganizationForm-test.js.snap @@ -2,8 +2,8 @@ exports[`creates new organization 1`] = ` <NewOrganizationForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={[MockFunction]} > <form onSubmit={[Function]} @@ -36,8 +36,8 @@ exports[`creates new organization 1`] = ` exports[`creates new organization 2`] = ` <NewOrganizationForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={[MockFunction]} > <form onSubmit={[Function]} @@ -67,8 +67,16 @@ exports[`creates new organization 2`] = ` exports[`creates new organization 3`] = ` <NewOrganizationForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={ + [MockFunction] { + "calls": Array [ + Array [ + "foo", + ], + ], + } + } > <div> <span @@ -104,8 +112,8 @@ exports[`creates new organization 3`] = ` exports[`deletes organization 1`] = ` <NewOrganizationForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={[MockFunction]} > <div> <span @@ -141,8 +149,8 @@ exports[`deletes organization 1`] = ` exports[`deletes organization 2`] = ` <NewOrganizationForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={[MockFunction]} > <div> <span @@ -159,8 +167,14 @@ exports[`deletes organization 2`] = ` exports[`deletes organization 3`] = ` <NewOrganizationForm - onDelete={[Function]} - onDone={[Function]} + onDelete={ + [MockFunction] { + "calls": Array [ + Array [], + ], + } + } + onDone={[MockFunction]} > <form onSubmit={[Function]} diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/NewProjectForm-test.js.snap b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/NewProjectForm-test.js.snap index 1074cf5cefc..5f389a66391 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/NewProjectForm-test.js.snap +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/NewProjectForm-test.js.snap @@ -2,8 +2,8 @@ exports[`creates new project 1`] = ` <NewProjectForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={[MockFunction]} > <div className="big-spacer-top" @@ -44,8 +44,8 @@ exports[`creates new project 1`] = ` exports[`creates new project 2`] = ` <NewProjectForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={[MockFunction]} > <div className="big-spacer-top" @@ -83,8 +83,16 @@ exports[`creates new project 2`] = ` exports[`creates new project 3`] = ` <NewProjectForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={ + [MockFunction] { + "calls": Array [ + Array [ + "foo", + ], + ], + } + } > <div className="big-spacer-top" @@ -129,8 +137,8 @@ exports[`creates new project 3`] = ` exports[`deletes project 1`] = ` <NewProjectForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={[MockFunction]} > <div className="big-spacer-top" @@ -175,8 +183,8 @@ exports[`deletes project 1`] = ` exports[`deletes project 2`] = ` <NewProjectForm - onDelete={[Function]} - onDone={[Function]} + onDelete={[MockFunction]} + onDone={[MockFunction]} > <div className="big-spacer-top" @@ -202,8 +210,14 @@ exports[`deletes project 2`] = ` exports[`deletes project 3`] = ` <NewProjectForm - onDelete={[Function]} - onDone={[Function]} + onDelete={ + [MockFunction] { + "calls": Array [ + Array [], + ], + } + } + onDone={[MockFunction]} > <div className="big-spacer-top" diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/OrganizationStep-test.js.snap b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/OrganizationStep-test.js.snap index 48a5505dee2..0f7aa889dd0 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/OrganizationStep-test.js.snap +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/OrganizationStep-test.js.snap @@ -9,14 +9,14 @@ exports[`works with existing organization 1`] = ` } } finished={false} - onContinue={[Function]} - onOpen={[Function]} + onContinue={[MockFunction]} + onOpen={[MockFunction]} open={true} stepNumber={1} > <Step finished={false} - onOpen={[Function]} + onOpen={[MockFunction]} open={true} renderForm={[Function]} renderResult={[Function]} diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/TokenStep-test.js.snap b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/TokenStep-test.js.snap index a09c774b420..332780eddec 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/TokenStep-test.js.snap +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/TokenStep-test.js.snap @@ -8,14 +8,14 @@ exports[`generates token 1`] = ` } } finished={false} - onContinue={[Function]} - onOpen={[Function]} + onContinue={[MockFunction]} + onOpen={[MockFunction]} open={true} stepNumber={1} > <Step finished={false} - onOpen={[Function]} + onOpen={[MockFunction]} open={true} renderForm={[Function]} renderResult={[Function]} @@ -110,14 +110,14 @@ exports[`generates token 2`] = ` } } finished={false} - onContinue={[Function]} - onOpen={[Function]} + onContinue={[MockFunction]} + onOpen={[MockFunction]} open={true} stepNumber={1} > <Step finished={false} - onOpen={[Function]} + onOpen={[MockFunction]} open={true} renderForm={[Function]} renderResult={[Function]} @@ -209,14 +209,14 @@ exports[`generates token 3`] = ` } } finished={false} - onContinue={[Function]} - onOpen={[Function]} + onContinue={[MockFunction]} + onOpen={[MockFunction]} open={true} stepNumber={1} > <Step finished={false} - onOpen={[Function]} + onOpen={[MockFunction]} open={true} renderForm={[Function]} renderResult={[Function]} @@ -307,14 +307,14 @@ exports[`revokes token 1`] = ` } } finished={false} - onContinue={[Function]} - onOpen={[Function]} + onContinue={[MockFunction]} + onOpen={[MockFunction]} open={true} stepNumber={1} > <Step finished={false} - onOpen={[Function]} + onOpen={[MockFunction]} open={true} renderForm={[Function]} renderResult={[Function]} @@ -405,14 +405,14 @@ exports[`revokes token 2`] = ` } } finished={false} - onContinue={[Function]} - onOpen={[Function]} + onContinue={[MockFunction]} + onOpen={[MockFunction]} open={true} stepNumber={1} > <Step finished={false} - onOpen={[Function]} + onOpen={[MockFunction]} open={true} renderForm={[Function]} renderResult={[Function]} @@ -484,14 +484,14 @@ exports[`revokes token 3`] = ` } } finished={false} - onContinue={[Function]} - onOpen={[Function]} + onContinue={[MockFunction]} + onOpen={[MockFunction]} open={true} stepNumber={1} > <Step finished={false} - onOpen={[Function]} + onOpen={[MockFunction]} open={true} renderForm={[Function]} renderResult={[Function]} diff --git a/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList.tsx.snap b/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList.tsx.snap index 5fc532a3be4..b3a9562ccdd 100644 --- a/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList.tsx.snap +++ b/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList.tsx.snap @@ -35,9 +35,9 @@ exports[`should render correctly 1`] = ` <UserListItem isCurrentUser={true} key="luke" - onUpdateUsers={[Function]} + onUpdateUsers={[MockFunction]} organizationsEnabled={true} - updateTokensCount={[Function]} + updateTokensCount={[MockFunction]} user={ Object { "active": true, @@ -51,9 +51,9 @@ exports[`should render correctly 1`] = ` <UserListItem isCurrentUser={false} key="obi" - onUpdateUsers={[Function]} + onUpdateUsers={[MockFunction]} organizationsEnabled={true} - updateTokensCount={[Function]} + updateTokensCount={[MockFunction]} user={ Object { "active": true, diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap index c7e647b57dd..d2c0e157903 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap @@ -29,7 +29,7 @@ exports[`should render correctly 1`] = ` <td> <UserGroups groups={Array []} - onUpdateUsers={[Function]} + onUpdateUsers={[MockFunction]} user={ Object { "active": true, @@ -55,7 +55,7 @@ exports[`should render correctly 1`] = ` > <UserActions isCurrentUser={false} - onUpdateUsers={[Function]} + onUpdateUsers={[MockFunction]} user={ Object { "active": true, diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.tsx.snap index f79a49c65e5..3dee85c0bd5 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.tsx.snap @@ -7,7 +7,7 @@ exports[`UsersSelectSearch should render correctly 1`] = ` isLoading={false} labelKey="name" noResultsText="no_results" - onChange={[Function]} + onChange={[MockFunction]} onInputChange={[Function]} optionComponent={[Function]} options={Array []} @@ -47,7 +47,7 @@ exports[`UsersSelectSearch should render correctly 3`] = ` isLoading={false} labelKey="name" noResultsText="no_results" - onChange={[Function]} + onChange={[MockFunction]} onInputChange={[Function]} optionComponent={[Function]} options={ diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCode-test.js.snap b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCode-test.js.snap index 2cfc320db91..1cb641e3679 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCode-test.js.snap +++ b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineCode-test.js.snap @@ -46,8 +46,8 @@ exports[`render code 1`] = ` }, ] } - onIssueClick={[Function]} - onPopupToggle={[Function]} + onIssueClick={[MockFunction]} + onPopupToggle={[MockFunction]} openPopup={null} selectedIssue="issue-1" /> diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssuesList-test.js.snap b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssuesList-test.js.snap index 1bae77158dd..6612498bbc8 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssuesList-test.js.snap +++ b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssuesList-test.js.snap @@ -13,8 +13,8 @@ exports[`render issues list 1`] = ` } } key="foo" - onClick={[Function]} - onPopupToggle={[Function]} + onClick={[MockFunction]} + onPopupToggle={[MockFunction]} openPopup={null} selected={true} /> @@ -27,8 +27,8 @@ exports[`render issues list 1`] = ` } } key="bar" - onClick={[Function]} - onPopupToggle={[Function]} + onClick={[MockFunction]} + onPopupToggle={[MockFunction]} openPopup={null} selected={false} /> diff --git a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.js.snap b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.js.snap index e5854e7792f..b4cc499c2be 100644 --- a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.js.snap +++ b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.js.snap @@ -112,7 +112,7 @@ exports[`should render bubbles with click handlers 1`] = ` <Bubble key="0" link="foo" - onClick={[Function]} + onClick={[MockFunction]} r={45} x={-10} y={52.3015873015873} @@ -136,7 +136,7 @@ exports[`should render bubbles with click handlers 2`] = ` <Bubble key="1" link="bar" - onClick={[Function]} + onClick={[MockFunction]} r={33.57142857142857} x={-75} y={33.57142857142857} diff --git a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/BubblePopupHelper-test.js.snap b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/BubblePopupHelper-test.js.snap index 9234d2e1550..51f8e93fda5 100644 --- a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/BubblePopupHelper-test.js.snap +++ b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/BubblePopupHelper-test.js.snap @@ -8,7 +8,7 @@ exports[`should correctly handle clicks on the button 1`] = ` tabIndex={0} > <button - onClick={[Function]} + onClick={[MockFunction]} > open </button> @@ -23,7 +23,24 @@ exports[`should correctly handle clicks on the button 2`] = ` tabIndex={0} > <button - onClick={[Function]} + onClick={ + [MockFunction] { + "calls": Array [ + Array [ + Object { + "currentTarget": Object { + "blur": [Function], + }, + "preventDefault": [Function], + "stopPropagation": [Function], + "target": Object { + "blur": [Function], + }, + }, + ], + ], + } + } > open </button> @@ -75,7 +92,7 @@ exports[`should render an open popup on the right 1`] = ` tabIndex={0} > <button - onClick={[Function]} + onClick={[MockFunction]} > open </button> @@ -104,7 +121,7 @@ exports[`should render the popup helper with a closed popup 1`] = ` tabIndex={0} > <button - onClick={[Function]} + onClick={[MockFunction]} > open </button> @@ -142,7 +159,7 @@ exports[`should render with custom classes 1`] = ` tabIndex={0} > <button - onClick={[Function]} + onClick={[MockFunction]} > open </button> diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SimpleModal-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SimpleModal-test.tsx.snap index 07abfb6a573..359048021d7 100644 --- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SimpleModal-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SimpleModal-test.tsx.snap @@ -3,7 +3,7 @@ exports[`renders 1`] = ` <Modal contentLabel="" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <div /> </Modal> @@ -12,7 +12,7 @@ exports[`renders 1`] = ` exports[`submits 1`] = ` <Modal contentLabel="" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <button disabled={false} @@ -26,7 +26,7 @@ exports[`submits 1`] = ` exports[`submits 2`] = ` <Modal contentLabel="" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <button disabled={true} @@ -40,7 +40,7 @@ exports[`submits 2`] = ` exports[`submits 3`] = ` <Modal contentLabel="" - onRequestClose={[Function]} + onRequestClose={[MockFunction]} > <button disabled={false} diff --git a/server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/FacetFooter-test.js.snap b/server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/FacetFooter-test.js.snap index e2475bdc5dd..e57d0a002f6 100644 --- a/server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/FacetFooter-test.js.snap +++ b/server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/FacetFooter-test.js.snap @@ -7,8 +7,8 @@ exports[`should render 1`] = ` <SearchSelect autofocus={false} minimumQueryLength={2} - onSearch={[Function]} - onSelect={[Function]} + onSearch={[MockFunction]} + onSelect={[MockFunction]} resetOnBlur={true} /> </div> 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" diff --git a/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts b/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts index 92da301dd22..d4b606c8801 100644 --- a/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts +++ b/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts @@ -85,6 +85,8 @@ it('differenceInDays', () => { it('differenceInSeconds', () => { expect(dates.differenceInSeconds(recentDate, parseDate('2017-08-16T10:00:00.000Z'))).toBe(7200); - expect(dates.differenceInSeconds(recentDate, parseDate('2017-08-16T12:00:00.500Z'))).toBe(0); + expect(dates.differenceInSeconds(recentDate, parseDate('2017-08-16T12:00:00.500Z'))).toBeCloseTo( + 0 + ); expect(dates.differenceInSeconds(recentDate, oldDate)).toBe(113356800); }); |