title: Jest check if an elements attribute exists
body: <p>I want to check with jest if the following svg path element contains the attribute <code>d</code><br>
  <code>&lt;path id="TrendLine" fill="none" stroke="black"  d="M170,28.76363636363638C170,28.76363636363638,221.46221083573664,189.150059910"&gt;&lt;/path&gt;</code> 
  How do I use jest to search for specific attribute in an element? </p>