         linterRegistry.lint({onChange: false, editorLinter}).then ->
           expect(info).toBeDefined()
           expect(info.messages.length).toBe(1)
-          linterRegistry.deactivate()

      linterRegistry.addLinter(linter)
      expect(linterRegistry.lint({onChange: false, editorLinter})).toBeDefined()
      expect(linterRegistry.lint({onChange: false, editorLinter})).toBeUndefined()
      linterRegistry.deactivate()

    describe 'buffer modifying linter', ->
      it 'triggers before other linters', ->

          scope: 'file'
          lint: -> order.push('third')
        }
        editorLinter = new EditorLinter(atom.workspace.getActiveTextEditor())
        linterRegistry.addLinter(first)
        linterRegistry.addLinter(second)
