title: "An error was thrown in afterAll\n[object ErrorEvent] thrown" - Angular 4 Unit tests
body: <p>While I was working on Angular 4 unit tests, one of the pages which uses google maps and agm package showed an error:</p>
  <pre><code>An error was thrown in afterAll\n[object ErrorEvent] thrown
  </code></pre>
  <p>Does anyone know what the issue could be?</p>
  <p><a href="https://i.stack.imgur.com/RBMyQ.jpg" rel="nofollow noreferrer">Console Screenshot</a></p>