]> source.dussan.org Git - sonarqube.git/blob
38c20e78b975288baf3ad1eba8763eb5c3113bf5
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders main branch 1`] = `
4 <div
5   className="navbar-context-branches dropdown"
6 >
7   <a
8     className="link-base-color link-no-underline"
9     href="#"
10     onClick={[Function]}
11   >
12     <BranchIcon
13       branch={
14         Object {
15           "isMain": true,
16           "name": "master",
17         }
18       }
19       className="little-spacer-right"
20     />
21     master
22     <i
23       className="icon-dropdown little-spacer-left"
24     />
25   </a>
26 </div>
27 `;
28
29 exports[`renders no branch support popup 1`] = `
30 <div
31   className="navbar-context-branches"
32 >
33   <BranchIcon
34     branch={
35       Object {
36         "isMain": true,
37         "name": "master",
38       }
39     }
40     className="little-spacer-right"
41     color="#cdcdcd"
42   />
43   <span
44     className="note"
45   >
46     master
47   </span>
48   <div
49     className="display-inline-block spacer-left"
50   >
51     <a
52       className="link-no-underline"
53       href="#"
54       onClick={[Function]}
55     >
56       <HelpIcon
57         fill="#cdcdcd"
58       />
59     </a>
60     <BubblePopupHelper
61       isOpen={false}
62       popup={<NoBranchSupportPopup />}
63       position="bottomleft"
64       togglePopup={[Function]}
65     />
66   </div>
67 </div>
68 `;
69
70 exports[`renders short-living branch 1`] = `
71 <div
72   className="navbar-context-branches dropdown"
73 >
74   <a
75     className="link-base-color link-no-underline"
76     href="#"
77     onClick={[Function]}
78   >
79     <BranchIcon
80       branch={
81         Object {
82           "isMain": false,
83           "mergeBranch": "master",
84           "name": "foo",
85           "status": Object {
86             "bugs": 0,
87             "codeSmells": 0,
88             "vulnerabilities": 0,
89           },
90           "type": "SHORT",
91         }
92       }
93       className="little-spacer-right"
94     />
95     foo
96     <i
97       className="icon-dropdown little-spacer-left"
98     />
99   </a>
100   <span
101     className="note big-spacer-left text-lowercase"
102   >
103     from
104      
105     <strong>
106       master
107     </strong>
108   </span>
109 </div>
110 `;
111
112 exports[`renders single branch popup 1`] = `
113 <div
114   className="navbar-context-branches"
115 >
116   <BranchIcon
117     branch={
118       Object {
119         "isMain": true,
120         "name": "master",
121       }
122     }
123     className="little-spacer-right"
124   />
125   <span
126     className="note"
127   >
128     master
129   </span>
130   <div
131     className="display-inline-block spacer-left"
132   >
133     <a
134       className="link-no-underline"
135       href="#"
136       onClick={[Function]}
137     >
138       <HelpIcon
139         fill="#4b9fd5"
140       />
141     </a>
142     <BubblePopupHelper
143       isOpen={false}
144       popup={<SingleBranchHelperPopup />}
145       position="bottomleft"
146       togglePopup={[Function]}
147     />
148   </div>
149 </div>
150 `;