Fix tests
This commit is contained in:
@@ -56,6 +56,7 @@ describe('server', () => {
|
|||||||
fileKey: 'test',
|
fileKey: 'test',
|
||||||
verifyUserEmails: true,
|
verifyUserEmails: true,
|
||||||
emailAdapter: MockEmailAdapterWithOptions({
|
emailAdapter: MockEmailAdapterWithOptions({
|
||||||
|
fromAddress: 'parse@example.com',
|
||||||
apiKey: 'k',
|
apiKey: 'k',
|
||||||
domain: 'd',
|
domain: 'd',
|
||||||
}),
|
}),
|
||||||
@@ -80,6 +81,7 @@ describe('server', () => {
|
|||||||
emailAdapter: {
|
emailAdapter: {
|
||||||
class: MockEmailAdapterWithOptions,
|
class: MockEmailAdapterWithOptions,
|
||||||
options: {
|
options: {
|
||||||
|
fromAddress: 'parse@example.com',
|
||||||
apiKey: 'k',
|
apiKey: 'k',
|
||||||
domain: 'd',
|
domain: 'd',
|
||||||
}
|
}
|
||||||
@@ -105,6 +107,7 @@ describe('server', () => {
|
|||||||
emailAdapter: {
|
emailAdapter: {
|
||||||
module: './Email/SimpleMailgunAdapter',
|
module: './Email/SimpleMailgunAdapter',
|
||||||
options: {
|
options: {
|
||||||
|
fromAddress: 'parse@example.com',
|
||||||
apiKey: 'k',
|
apiKey: 'k',
|
||||||
domain: 'd',
|
domain: 'd',
|
||||||
}
|
}
|
||||||
@@ -129,7 +132,7 @@ describe('server', () => {
|
|||||||
verifyUserEmails: true,
|
verifyUserEmails: true,
|
||||||
emailAdapter: './Email/SimpleMailgunAdapter',
|
emailAdapter: './Email/SimpleMailgunAdapter',
|
||||||
publicServerURL: 'http://localhost:8378/1'
|
publicServerURL: 'http://localhost:8378/1'
|
||||||
})).toThrow('SimpleMailgunAdapter requires an API Key and domain.');
|
})).toThrow('SimpleMailgunAdapter requires an API Key, domain, and fromAddress.');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -153,7 +156,7 @@ describe('server', () => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
publicServerURL: 'http://localhost:8378/1'
|
publicServerURL: 'http://localhost:8378/1'
|
||||||
})).toThrow('SimpleMailgunAdapter requires an API Key and domain.');
|
})).toThrow('SimpleMailgunAdapter requires an API Key, domain, and fromAddress.');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user