title: Jasmine array.length expect
body: <p>I'm just new to the jasmine js test framework and got some odd results today. </p>
  
  <p>See the following code (<code>search</code> is a function that preforms an api request and returns a promise):</p>
  
  <pre><code>it('should be able to search', function() {
      search('string').done(function(result) {
          expect(result.length).toBeGreaterThan(1); //true
          console.log(result.lenght); // undefined
      });
  });
  </code></pre>
  
  <p>The thing is that, due to some errors that I have to fix, the result from the promise is undefined, but the test is marked as <code>Success</code>. I find this misleading and if I din't investigate this deeply I would have believed that the test was a success while it clearly wasn't. Is this expected behaviour? </p>