]> source.dussan.org Git - sonarqube.git/blob
22be4264e2a94d3726ad192428e44aec09396301
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render the quality profiles rules with sonarway comparison 1`] = `
4 <div
5   className="quality-profile-rules"
6 >
7   <div
8     className="quality-profile-rules-distribution"
9   >
10     <table
11       className="data condensed"
12     >
13       <thead>
14         <tr>
15           <th>
16             <h2>
17               rules
18             </h2>
19           </th>
20           <th>
21             active
22           </th>
23           <th>
24             inactive
25           </th>
26         </tr>
27       </thead>
28       <tbody>
29         <ProfileRulesRowTotal
30           count={68}
31           organization="foo"
32           qprofile="foo"
33           total={243}
34         />
35         <ProfileRulesRowOfType
36           count={68}
37           organization="foo"
38           qprofile="foo"
39           total={68}
40           type="BUG"
41         />
42         <ProfileRulesRowOfType
43           count={0}
44           organization="foo"
45           qprofile="foo"
46           total={7}
47           type="VULNERABILITY"
48         />
49         <ProfileRulesRowOfType
50           count={0}
51           organization="foo"
52           qprofile="foo"
53           total={168}
54           type="CODE_SMELL"
55         />
56       </tbody>
57     </table>
58   </div>
59   <ProfileRulesSonarWayComparison
60     language="java"
61     organization="foo"
62     profile="foo"
63     sonarWayMissingRules={4}
64     sonarway="sonarway"
65   />
66 </div>
67 `;
68
69 exports[`should show a button to activate more rules for admins 1`] = `
70 <Link
71   className="button js-activate-rules"
72   onlyActiveOnIndex={false}
73   style={Object {}}
74   to="/organizations/foo/rules#qprofile=foo|activation=false"
75 >
76   quality_profiles.activate_more
77 </Link>
78 `;
79
80 exports[`should show a deprecated rules warning message 1`] = `
81 <ProfileRulesDeprecatedWarning
82   activeDeprecatedRules={8}
83   organization="foo"
84   profile="foo"
85 />
86 `;