]> source.dussan.org Git - sonarqube.git/blob
db6386f4230ab77553460ad39b3d4b5ef752ee9f
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <header
5   className="page-header quality-profile-header"
6 >
7   <div
8     className="note spacer-bottom"
9   >
10     <NavLink
11       className="text-muted"
12       end={true}
13       to="/profiles"
14     >
15       quality_profiles.page
16     </NavLink>
17      / 
18     <Link
19       className="text-muted"
20       to={
21         Object {
22           "pathname": "/profiles",
23           "search": "?language=js",
24         }
25       }
26     >
27       JavaScript
28     </Link>
29   </div>
30   <h1
31     className="page-title"
32   >
33     <ProfileLink
34       className="link-base-color"
35       language="js"
36       name="name"
37     >
38       <span>
39         name
40       </span>
41     </ProfileLink>
42   </h1>
43   <div
44     className="pull-right"
45   >
46     <ul
47       className="list-inline"
48       style={
49         Object {
50           "lineHeight": "24px",
51         }
52       }
53     >
54       <li
55         className="small spacer-right"
56       >
57         quality_profiles.updated_
58          
59         <DateFromNow />
60       </li>
61       <li
62         className="small big-spacer-right"
63       >
64         quality_profiles.used_
65          
66         <DateFromNow />
67       </li>
68       <li>
69         <Link
70           className="button"
71           to={
72             Object {
73               "pathname": "/profiles/changelog",
74               "search": "?language=js&name=name",
75             }
76           }
77         >
78           changelog
79         </Link>
80       </li>
81       <li>
82         <withRouter(ProfileActions)
83           className="pull-left"
84           profile={
85             Object {
86               "activeDeprecatedRuleCount": 2,
87               "activeRuleCount": 10,
88               "childrenCount": 0,
89               "depth": 1,
90               "isBuiltIn": false,
91               "isDefault": false,
92               "isInherited": false,
93               "key": "key",
94               "language": "js",
95               "languageName": "JavaScript",
96               "name": "name",
97               "projectCount": 3,
98             }
99           }
100           updateProfiles={[MockFunction]}
101         />
102       </li>
103     </ul>
104   </div>
105 </header>
106 `;
107
108 exports[`should render correctly: for default profile 1`] = `
109 <header
110   className="page-header quality-profile-header"
111 >
112   <div
113     className="note spacer-bottom"
114   >
115     <NavLink
116       className="text-muted"
117       end={true}
118       to="/profiles"
119     >
120       quality_profiles.page
121     </NavLink>
122      / 
123     <Link
124       className="text-muted"
125       to={
126         Object {
127           "pathname": "/profiles",
128           "search": "?language=js",
129         }
130       }
131     >
132       JavaScript
133     </Link>
134   </div>
135   <h1
136     className="page-title"
137   >
138     <ProfileLink
139       className="link-base-color"
140       language="js"
141       name="name"
142     >
143       <span>
144         name
145       </span>
146     </ProfileLink>
147     <Tooltip
148       overlay="quality_profiles.list.default.help"
149     >
150       <span
151         className=" spacer-left badge"
152       >
153         default
154       </span>
155     </Tooltip>
156   </h1>
157   <div
158     className="pull-right"
159   >
160     <ul
161       className="list-inline"
162       style={
163         Object {
164           "lineHeight": "24px",
165         }
166       }
167     >
168       <li
169         className="small spacer-right"
170       >
171         quality_profiles.updated_
172          
173         <DateFromNow />
174       </li>
175       <li
176         className="small big-spacer-right"
177       >
178         quality_profiles.used_
179          
180         <DateFromNow />
181       </li>
182       <li>
183         <Link
184           className="button"
185           to={
186             Object {
187               "pathname": "/profiles/changelog",
188               "search": "?language=js&name=name",
189             }
190           }
191         >
192           changelog
193         </Link>
194       </li>
195       <li>
196         <withRouter(ProfileActions)
197           className="pull-left"
198           profile={
199             Object {
200               "activeDeprecatedRuleCount": 2,
201               "activeRuleCount": 10,
202               "childrenCount": 0,
203               "depth": 1,
204               "isBuiltIn": false,
205               "isDefault": true,
206               "isInherited": false,
207               "key": "key",
208               "language": "js",
209               "languageName": "JavaScript",
210               "name": "name",
211               "projectCount": 3,
212             }
213           }
214           updateProfiles={[MockFunction]}
215         />
216       </li>
217     </ul>
218   </div>
219 </header>
220 `;