{Message} = require 'nylas-exports' SignatureDraftStoreExtension = require '../lib/signature-draft-extension' describe "SignatureDraftStoreExtension", -> describe "prepareNewDraft", -> describe "when a signature is defined", -> beforeEach -> @signature = "
Hello world' b = new Message draft: true body: 'This is a another test.' SignatureDraftStoreExtension.prepareNewDraft(a) expect(a.body).toEqual("This is a test!
Hello world") SignatureDraftStoreExtension.prepareNewDraft(b) expect(b.body).toEqual("This is a another test
Hello world' SignatureDraftStoreExtension.prepareNewDraft(a) expect(a.body).toEqual('This is a test!
Hello world')