       lint: -> return [{type: "Error", text: "Something"}]
     }
     linterRegistry.addLinter(linter)
-    return {linterRegistry, editorLinter}
+    return {linterRegistry, editorLinter, linter}
 
   beforeEach ->
     waitsForPromise ->

        linterRegistry.lint({onChange: false, editorLinter}).then ->
          expect(wasUpdated).toBe(true)
          linterRegistry.deactivate()

  describe '::onDidUpdateMessages', ->
    it 'is triggered asyncly with results', ->

    size = 0
    size++ for value of obj
    return size
  getMessage = (type, filePath) ->
    return {type, text: "Some Message", filePath}
  getLinterRegistry = ->
    linterRegistry = new LinterRegistry
    editorLinter = new EditorLinter(atom.workspace.getActiveTextEditor())
