  notify(&#39;more&#39;);
  notify(&#39;two&#39;);
  notify(&#39;third&#39;);

  expect(mock.alert.callCount).toEqual(2);
  expect(mock.alert.mostRecentCall.args).toEqual([&quot;more\ntwo\nthird&quot;]);
});
</code></pre>
<h2 id="related-topics">Related Topics</h2>
<ul>
<li><a href="guide/di">Dependency Injection in AngularJS</a></li>
</ul>
<h2 id="related-api">Related API</h2>
<ul>
<li><a href="./api/ng/service">Angular Service API</a></li>
<li><a href="api/ng/function/angular.injector">Injector API</a></l