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

            expect(order[0]).toBe('first')
            expect(order[1]).toBe('second')
            expect(order[2]).toBe('third')
            linterRegistry.deactivate()

  describe '::onDidUpdateMessages', ->
    it 'is triggered whenever messages change', ->
      linterRegistry = new LinterRegistry
      editorLinter = new EditorLinter(atom.workspace.getActiveTextEditor())
      linter = {
        grammarScopes: ['*']

      waitsForPromise ->
        atom.workspace.open('someNonExistingFile.txt').then ->
          expect(linterRegistry.lint({onChange: false, editorLinter})).toBeUndefined()
    it 'disallows two co-current lints of same type', ->
      editorLinter = new EditorLinter(atom.workspace.getActiveTextEditor())
      linter = {
        grammarScopes: ['*']
