From f28b719b830c6f167a71462e7b9abe4a1ccc55ad Mon Sep 17 00:00:00 2001 From: Drew Gross Date: Tue, 22 Mar 2016 22:22:53 -0700 Subject: [PATCH] Fix tests --- spec/index.spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/index.spec.js b/spec/index.spec.js index bb902e05..cccbc8e1 100644 --- a/spec/index.spec.js +++ b/spec/index.spec.js @@ -56,6 +56,7 @@ describe('server', () => { fileKey: 'test', verifyUserEmails: true, emailAdapter: MockEmailAdapterWithOptions({ + fromAddress: 'parse@example.com', apiKey: 'k', domain: 'd', }), @@ -80,6 +81,7 @@ describe('server', () => { emailAdapter: { class: MockEmailAdapterWithOptions, options: { + fromAddress: 'parse@example.com', apiKey: 'k', domain: 'd', } @@ -105,6 +107,7 @@ describe('server', () => { emailAdapter: { module: './Email/SimpleMailgunAdapter', options: { + fromAddress: 'parse@example.com', apiKey: 'k', domain: 'd', } @@ -129,7 +132,7 @@ describe('server', () => { verifyUserEmails: true, emailAdapter: './Email/SimpleMailgunAdapter', publicServerURL: 'http://localhost:8378/1' - })).toThrow('SimpleMailgunAdapter requires an API Key and domain.'); + })).toThrow('SimpleMailgunAdapter requires an API Key, domain, and fromAddress.'); done(); }); @@ -153,7 +156,7 @@ describe('server', () => { } }, publicServerURL: 'http://localhost:8378/1' - })).toThrow('SimpleMailgunAdapter requires an API Key and domain.'); + })).toThrow('SimpleMailgunAdapter requires an API Key, domain, and fromAddress.'); done(); });