]> source.dussan.org Git - sonarqube.git/blob
f4edb48406f4a7accec3edbc552fa09875c58774
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders main branch 1`] = `
4 <li
5   onMouseEnter={[Function]}
6 >
7   <Link
8     className="navbar-context-meta-branch-menu-item"
9     onlyActiveOnIndex={false}
10     style={Object {}}
11     to={
12       Object {
13         "pathname": "/dashboard",
14         "query": Object {
15           "id": "component",
16         },
17       }
18     }
19   >
20     <div>
21       <BranchIcon
22         branch={
23           Object {
24             "isMain": true,
25             "name": "master",
26           }
27         }
28         className="little-spacer-right"
29       />
30       master
31       <div
32         className="outline-badge spacer-left"
33       >
34         branches.main_branch
35       </div>
36     </div>
37     <div
38       className="big-spacer-left note"
39     >
40       <BranchStatus
41         branch={
42           Object {
43             "isMain": true,
44             "name": "master",
45           }
46         }
47         concise={true}
48       />
49     </div>
50   </Link>
51 </li>
52 `;
53
54 exports[`renders short-living branch 1`] = `
55 <li
56   onMouseEnter={[Function]}
57 >
58   <Link
59     className="navbar-context-meta-branch-menu-item"
60     onlyActiveOnIndex={false}
61     style={Object {}}
62     to={
63       Object {
64         "pathname": "/project/issues",
65         "query": Object {
66           "branch": "foo",
67           "id": "component",
68           "resolved": "false",
69         },
70       }
71     }
72   >
73     <div>
74       <BranchIcon
75         branch={
76           Object {
77             "isMain": false,
78             "mergeBranch": "master",
79             "name": "foo",
80             "status": Object {
81               "bugs": 1,
82               "codeSmells": 2,
83               "vulnerabilities": 3,
84             },
85             "type": "SHORT",
86           }
87         }
88         className="little-spacer-right big-spacer-left"
89       />
90       foo
91     </div>
92     <div
93       className="big-spacer-left note"
94     >
95       <BranchStatus
96         branch={
97           Object {
98             "isMain": false,
99             "mergeBranch": "master",
100             "name": "foo",
101             "status": Object {
102               "bugs": 1,
103               "codeSmells": 2,
104               "vulnerabilities": 3,
105             },
106             "type": "SHORT",
107           }
108         }
109         concise={true}
110       />
111     </div>
112   </Link>
113 </li>
114 `;
115
116 exports[`renders short-living orhpan branch 1`] = `
117 <li
118   onMouseEnter={[Function]}
119 >
120   <Link
121     className="navbar-context-meta-branch-menu-item"
122     onlyActiveOnIndex={false}
123     style={Object {}}
124     to={
125       Object {
126         "pathname": "/project/issues",
127         "query": Object {
128           "branch": "foo",
129           "id": "component",
130           "resolved": "false",
131         },
132       }
133     }
134   >
135     <div>
136       <BranchIcon
137         branch={
138           Object {
139             "isMain": false,
140             "isOrphan": true,
141             "mergeBranch": "master",
142             "name": "foo",
143             "status": Object {
144               "bugs": 1,
145               "codeSmells": 2,
146               "vulnerabilities": 3,
147             },
148             "type": "SHORT",
149           }
150         }
151         className="little-spacer-right"
152       />
153       foo
154     </div>
155     <div
156       className="big-spacer-left note"
157     >
158       <BranchStatus
159         branch={
160           Object {
161             "isMain": false,
162             "isOrphan": true,
163             "mergeBranch": "master",
164             "name": "foo",
165             "status": Object {
166               "bugs": 1,
167               "codeSmells": 2,
168               "vulnerabilities": 3,
169             },
170             "type": "SHORT",
171           }
172         }
173         concise={true}
174       />
175     </div>
176   </Link>
177 </li>
178 `;