         })
 
   describe 'list-cut', ->
+    afterEach ->
+      expectNoErrorsOrWarnings()
+
     it 'Cursor inside element in singleton list cuts element and whitespace', ->
       editor.setText '[ Single ]'
       editor.setCursorBufferPosition [0, 3]

        #       we need to dispatch to atom.views.getView(editor) instead of atom.views.getView(atom.workspace)
        atom.commands.dispatch editorView, 'list-edit:copy'
        # Activate package with a neutral list-edit:copy, so the test edit commands don't have to deal with activation.
        activationPromise
        # TODO: Would be nice if we could do this just once, instead of for each spec, but waitsForPromise does
        #       not seem to work in describe (unlike what the documentation suggests.)

  describe 'list-copy', ->
    it 'copies the selected range to the clipboard', ->
      #               01234567890123456789012345678901234567890
      editor.setText '[   Blinky ,  Pinky ,  Inky ,  Clyde   ]'

      editor.setCursorBufferPosition [0, 7] # paste on two
      atom.commands.dispatch editorView, 'list-edit:paste'
      expect(editor.getText()).toBe '{one, NoSep, three}'
      expectNoErrorsOrWarnings()

    it 'does not warn when a default separator isn\'t used because target list was empty', ->
      listCopyFrom '[NoSep]', 0, 3
