Skip to content

Commit 46efbd1

Browse files
committed
Fix tests
1 parent feba9b7 commit 46efbd1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spec/index.spec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ describe('server', () => {
5656
fileKey: 'test',
5757
verifyUserEmails: true,
5858
emailAdapter: MockEmailAdapterWithOptions({
59+
fromAddress: '[email protected]',
5960
apiKey: 'k',
6061
domain: 'd',
6162
}),
@@ -80,6 +81,7 @@ describe('server', () => {
8081
emailAdapter: {
8182
class: MockEmailAdapterWithOptions,
8283
options: {
84+
fromAddress: '[email protected]',
8385
apiKey: 'k',
8486
domain: 'd',
8587
}
@@ -105,6 +107,7 @@ describe('server', () => {
105107
emailAdapter: {
106108
module: './Email/SimpleMailgunAdapter',
107109
options: {
110+
fromAddress: '[email protected]',
108111
apiKey: 'k',
109112
domain: 'd',
110113
}
@@ -129,7 +132,7 @@ describe('server', () => {
129132
verifyUserEmails: true,
130133
emailAdapter: './Email/SimpleMailgunAdapter',
131134
publicServerURL: 'http://localhost:8378/1'
132-
})).toThrow('SimpleMailgunAdapter requires an API Key and domain.');
135+
})).toThrow('SimpleMailgunAdapter requires an API Key, domain, and fromAddress.');
133136
done();
134137
});
135138

@@ -153,7 +156,7 @@ describe('server', () => {
153156
}
154157
},
155158
publicServerURL: 'http://localhost:8378/1'
156-
})).toThrow('SimpleMailgunAdapter requires an API Key and domain.');
159+
})).toThrow('SimpleMailgunAdapter requires an API Key, domain, and fromAddress.');
157160
done();
158161
});
159162

0 commit comments

Comments
 (0)