]> source.dussan.org Git - sonarqube.git/blob
773b22685c1e003111c96ff816b08e97a4eb9081
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should expand and collapse dangerous link 1`] = `
4 <li>
5   <a
6     className="link-with-icon"
7     href="javascript:alert(\\"hi\\")"
8     onClick={[Function]}
9     rel="nofollow noreferrer noopener"
10     target="_blank"
11     title="Dangerous"
12   >
13     <ProjectLinkIcon
14       className="little-spacer-right"
15       type="dangerous"
16     />
17     Dangerous
18   </a>
19 </li>
20 `;
21
22 exports[`should expand and collapse dangerous link 2`] = `
23 <li>
24   <a
25     className="link-with-icon"
26     href="javascript:alert(\\"hi\\")"
27     onClick={[Function]}
28     rel="nofollow noreferrer noopener"
29     target="_blank"
30     title="Dangerous"
31   >
32     <ProjectLinkIcon
33       className="little-spacer-right"
34       type="dangerous"
35     />
36     Dangerous
37   </a>
38   <div
39     className="little-spacer-top display-flex-center"
40   >
41     <input
42       className="overview-key width-80"
43       onClick={[Function]}
44       readOnly={true}
45       type="text"
46       value="javascript:alert(\\"hi\\")"
47     />
48     <ClearButton
49       className="little-spacer-left"
50       onClick={[Function]}
51     />
52   </div>
53 </li>
54 `;
55
56 exports[`should expand and collapse dangerous link 3`] = `
57 <li>
58   <a
59     className="link-with-icon"
60     href="javascript:alert(\\"hi\\")"
61     onClick={[Function]}
62     rel="nofollow noreferrer noopener"
63     target="_blank"
64     title="Dangerous"
65   >
66     <ProjectLinkIcon
67       className="little-spacer-right"
68       type="dangerous"
69     />
70     Dangerous
71   </a>
72 </li>
73 `;
74
75 exports[`should match snapshot 1`] = `
76 <li>
77   <a
78     className="link-with-icon"
79     href="http://example.com"
80     rel="nofollow noreferrer noopener"
81     target="_blank"
82     title="Foo"
83   >
84     <ProjectLinkIcon
85       className="little-spacer-right"
86       type="foo"
87     />
88     Foo
89   </a>
90 </li>
91 `;
92
93 exports[`should match snapshot 2`] = `
94 <li>
95   <a
96     className="link-with-icon"
97     href="http://example.com"
98     rel="nofollow noreferrer noopener"
99     target="_blank"
100     title="Foo"
101   >
102     <ProjectLinkIcon
103       className="little-spacer-right"
104       type="foo"
105     />
106   </a>
107 </li>
108 `;
109
110 exports[`should render dangerous links as plaintext 1`] = `
111 <li>
112   <a
113     className="link-with-icon"
114     href="javascript:alert(\\"hi\\")"
115     onClick={[Function]}
116     rel="nofollow noreferrer noopener"
117     target="_blank"
118     title="Dangerous"
119   >
120     <ProjectLinkIcon
121       className="little-spacer-right"
122       type="dangerous"
123     />
124     Dangerous
125   </a>
126 </li>
127 `;