it('adds the data and media', function() {
          expect(this.onAttachment).to.have.been.calledOnce
          const attachment = this.onAttachment.firstCall.args[0]
          expect(attachment.data).to.eql('my string')
          expect(attachment.media).to.eql({ type: 'text/special' })