title: Postman = To assert that the array in the response body contains a string value in all its elements
body: <p>I'm new to Postman. My Postman is failing to match test criteria. Could anyone please help! It is returning true even if there is no match</p>
  <pre class="lang-js prettyprint-override"><code>pm.test('Hourly metrics report generated to only 1 building', () =&gt; {
      _.each(jsonData.attributes, (item) =&gt; {
          pm.expect(item.building_ref_id).to.include('Mounting_View-EN-1-Internal_Alpha')
      })
  })
  </code></pre>
  <pre class="lang-json prettyprint-override"><code>    {
                  &quot;id&quot;: &quot;423317&quot;,
                  &quot;type&quot;: &quot;space&quot;,
                  &quot;attributes&quot;: {
                      &quot;name&quot;: &quot;RM_05_030&quot;,
                      &quot;space_ref_id&quot;: &quot;RM_05_030&quot;,
                      &quot;building_ref_id&quot;: &quot;80_Fen&quot;,
                      &quot;floor_ref_id&quot;: &quot;5&quot;
                  }
      }
  </code></pre>