]> source.dussan.org Git - sonarqube.git/blob
9eff32909b25851d8b20bc1db227ff8ee61fcf72
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="boxed-group quality-profile-inheritance"
6 >
7   <header
8     className="boxed-group-header"
9   >
10     <h2>
11       quality_profiles.profile_inheritance
12     </h2>
13   </header>
14   <div
15     className="boxed-group-inner"
16   >
17     <table
18       className="data zebra"
19     >
20       <tbody>
21         <ProfileInheritanceBox
22           depth={0}
23           key="foo"
24           language="js"
25           profile={
26             {
27               "activeRuleCount": 4,
28               "isBuiltIn": false,
29               "key": "foo",
30               "name": "Foo",
31               "overridingRuleCount": 0,
32             }
33           }
34           type="ancestor"
35         />
36         <ProfileInheritanceBox
37           depth={2}
38           key="foo"
39           language="js"
40           profile={
41             {
42               "activeRuleCount": 4,
43               "isBuiltIn": false,
44               "key": "foo",
45               "name": "Foo",
46               "overridingRuleCount": 0,
47             }
48           }
49           type="child"
50         />
51       </tbody>
52     </table>
53   </div>
54 </div>
55 `;
56
57 exports[`should render modal correctly 1`] = `
58 <div
59   className="boxed-group quality-profile-inheritance"
60 >
61   <header
62     className="boxed-group-header"
63   >
64     <h2>
65       quality_profiles.profile_inheritance
66     </h2>
67   </header>
68   <div
69     className="boxed-group-inner"
70   >
71     <table
72       className="data zebra"
73     >
74       <tbody>
75         <ProfileInheritanceBox
76           depth={0}
77           key="foo"
78           language="js"
79           profile={
80             {
81               "activeRuleCount": 4,
82               "isBuiltIn": false,
83               "key": "foo",
84               "name": "Foo",
85               "overridingRuleCount": 0,
86             }
87           }
88           type="ancestor"
89         />
90         <ProfileInheritanceBox
91           depth={2}
92           key="foo"
93           language="js"
94           profile={
95             {
96               "activeRuleCount": 4,
97               "isBuiltIn": false,
98               "key": "foo",
99               "name": "Foo",
100               "overridingRuleCount": 0,
101             }
102           }
103           type="child"
104         />
105       </tbody>
106     </table>
107   </div>
108   <ChangeParentForm
109     onChange={[Function]}
110     onClose={[Function]}
111     profile={
112       {
113         "activeDeprecatedRuleCount": 2,
114         "activeRuleCount": 10,
115         "childrenCount": 0,
116         "depth": 1,
117         "isBuiltIn": false,
118         "isDefault": false,
119         "isInherited": false,
120         "key": "key",
121         "language": "js",
122         "languageName": "JavaScript",
123         "name": "name",
124         "projectCount": 3,
125       }
126     }
127     profiles={
128       [
129         {
130           "activeDeprecatedRuleCount": 2,
131           "activeRuleCount": 10,
132           "childrenCount": 0,
133           "depth": 1,
134           "isBuiltIn": false,
135           "isDefault": false,
136           "isInherited": false,
137           "key": "key",
138           "language": "js",
139           "languageName": "JavaScript",
140           "name": "name",
141           "projectCount": 3,
142         },
143       ]
144     }
145   />
146 </div>
147 `;