@@ -6,16 +6,50 @@ exports[`renders correctly when there is a URL 1`] = `
66> 
77 <div  
88 className = " result__header"  
9+  /> 
10+  <div  
11+  className = " result__body"  
912 > 
10-  <a  
13+  <ul  
14+  className = " result__details"  
15+  > 
16+  <li  
17+  key = " field"  
18+  > 
19+  <span  
20+  className = " result__key"  
21+  > 
22+  field 
23+  </span > 
24+   
25+  <span  
26+  className = " result__value"  
27+  dangerouslySetInnerHTML = {  
28+  Object  { 
29+  " __html" " value"  
30+  } 
31+  }  
32+  /> 
33+  </li > 
34+  </ul > 
35+  </div > 
36+ </li > 
37+ ` 
38+ 
39+ exports [` renders correctly when there is a title 1` =  ` 
40+ <li  
41+  className = " result"  
42+ > 
43+  <div  
44+  className = " result__header"  
45+  > 
46+  <span  
1147 className = " result__title"  
1248 dangerouslySetInnerHTML = {  
1349 Object  { 
1450 " __html" " Title"  
1551 } 
1652 }  
17-  href = " http://www.example.com"  
18-  target = " _blank"  
1953 /> 
2054 </div > 
2155 <div  
@@ -47,20 +81,22 @@ exports[`renders correctly when there is a URL 1`] = `
4781</li > 
4882` 
4983
50- exports [` renders correctly when there is not a URL  1` =  ` 
84+ exports [` renders correctly when there is a title and url  1` =  ` 
5185<li  
5286 className = " result"  
5387> 
5488 <div  
5589 className = " result__header"  
5690 > 
57-  <span  
91+  <a  
5892 className = " result__title"  
5993 dangerouslySetInnerHTML = {  
6094 Object  { 
6195 " __html" " Title"  
6296 } 
6397 }  
98+  href = " http://www.example.com"  
99+  target = " _blank"  
64100 /> 
65101 </div > 
66102 <div  
@@ -91,3 +127,39 @@ exports[`renders correctly when there is not a URL 1`] = `
91127 </div > 
92128</li > 
93129` 
130+ 
131+ exports [` renders correctly when there is not a URL or title 1` =  ` 
132+ <li  
133+  className = " result"  
134+ > 
135+  <div  
136+  className = " result__header"  
137+  /> 
138+  <div  
139+  className = " result__body"  
140+  > 
141+  <ul  
142+  className = " result__details"  
143+  > 
144+  <li  
145+  key = " field"  
146+  > 
147+  <span  
148+  className = " result__key"  
149+  > 
150+  field 
151+  </span > 
152+   
153+  <span  
154+  className = " result__value"  
155+  dangerouslySetInnerHTML = {  
156+  Object  { 
157+  " __html" " value"  
158+  } 
159+  }  
160+  /> 
161+  </li > 
162+  </ul > 
163+  </div > 
164+ </li > 
165+ ` 
0 commit comments