]> source.dussan.org Git - sonarqube.git/blob
b72bebfac307958e5657f998a4201aab6f898c93
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`does not render scm details 1`] = `
4 <td
5   className="source-meta source-line-scm"
6   data-line-number={3}
7   onClick={[Function]}
8   role="button"
9   tabIndex={0}
10 >
11   <Toggler
12     onRequestClose={[Function]}
13     open={false}
14     overlay={
15       <SCMPopup
16         line={
17           Object {
18             "line": 3,
19             "scmAuthor": "foo",
20             "scmDate": "2017-01-01",
21             "scmRevision": "foo",
22           }
23         }
24       />
25     }
26   />
27 </td>
28 `;
29
30 exports[`render scm details 1`] = `
31 <td
32   className="source-meta source-line-scm"
33   data-line-number={3}
34   onClick={[Function]}
35   role="button"
36   tabIndex={0}
37 >
38   <Toggler
39     onRequestClose={[Function]}
40     open={false}
41     overlay={
42       <SCMPopup
43         line={
44           Object {
45             "line": 3,
46             "scmAuthor": "foo",
47             "scmDate": "2017-01-01",
48           }
49         }
50       />
51     }
52   >
53     <div
54       className="source-line-scm-inner"
55       data-author="foo"
56     />
57   </Toggler>
58 </td>
59 `;
60
61 exports[`render scm details for the first line 1`] = `
62 <td
63   className="source-meta source-line-scm"
64   data-line-number={3}
65   onClick={[Function]}
66   role="button"
67   tabIndex={0}
68 >
69   <Toggler
70     onRequestClose={[Function]}
71     open={false}
72     overlay={
73       <SCMPopup
74         line={
75           Object {
76             "line": 3,
77             "scmAuthor": "foo",
78             "scmDate": "2017-01-01",
79             "scmRevision": "foo",
80           }
81         }
82       />
83     }
84   >
85     <div
86       className="source-line-scm-inner"
87       data-author="foo"
88     />
89   </Toggler>
90 </td>
91 `;
92
93 exports[`renders ellipsis when no author info 1`] = `
94 <td
95   className="source-meta source-line-scm"
96   data-line-number={3}
97   onClick={[Function]}
98   role="button"
99   tabIndex={0}
100 >
101   <Toggler
102     onRequestClose={[Function]}
103     open={false}
104     overlay={
105       <SCMPopup
106         line={
107           Object {
108             "line": 3,
109             "scmDate": "2017-01-01",
110             "scmRevision": "foo",
111           }
112         }
113       />
114     }
115   >
116     <div
117       className="source-line-scm-inner"
118       data-author="…"
119     />
120   </Toggler>
121 </td>
122 `;