title: How do I check for a console log in Karma/Jasmine?
body: <p>Let's say I have this function I want to test:</p>
  
  <pre class="lang-or-tag-here prettyprint-override"><code>var test = function () {
    console.log('words!');
  };
  </code></pre>
  
  <p>I'd write something like this</p>
  
  <pre class="lang-or-tag-here prettyprint-override"><code>define('test()', function () {
    it('prints "words!" to the screen', function() {
      test();
      expect(&lt;browser logs&gt;).toContain('words!'); // TODO
    }
  }
  </code></pre>
  
  <p>But I don't know how to view the console logs or if this is even possible. Preferably, I'd do this in any browser, or at least PhantomJS. </p>