I couldn't get this to work. I've changed it to look like
```
expect(result[0]).toEqual({
  item: { called: true, name: "javascript linter", scanFile: function() {} },
  results: { errors: [ lintResult ] }
});
```
jasmine is giving me this:
````
{ item : { called : true, name : 'javascript linter', scanFile : Function }, results : { errors : [ { pos : { line : 2, ch : 3 }, message : 'Some errors here and there', type : 'problem_type_warning' } ] } } to equal { item : { called : true, name : 'javascript linter', scanFile : Function }, results : { errors : [ { pos : { line : 2, ch : 3 }, message : 'Some errors here and there', type : 'problem_type_warning' } ] } }
```
Even if the expected and the actual result look the same, the test is failing. Perhaps the scanFile function is makes the difference here. I'm not going to change this right now.