Sends 404 when parseServerURL is not set on public pages

- throws when verifyEmail = true && publicServerURL not set
This commit is contained in:
Florent Vilmart
2016-02-29 20:51:13 -05:00
parent 6aa38ea8ca
commit 28d1a8afe4
8 changed files with 186 additions and 41 deletions

View File

@@ -56,6 +56,7 @@ describe('server', () => {
apiKey: 'k',
domain: 'd',
}),
publicServerURL: 'http://localhost:8378/1'
});
done();
});
@@ -80,6 +81,7 @@ describe('server', () => {
domain: 'd',
}
},
publicServerURL: 'http://localhost:8378/1'
});
done();
});
@@ -104,6 +106,7 @@ describe('server', () => {
domain: 'd',
}
},
publicServerURL: 'http://localhost:8378/1'
});
done();
});
@@ -122,6 +125,7 @@ describe('server', () => {
fileKey: 'test',
verifyUserEmails: true,
emailAdapter: './Email/SimpleMailgunAdapter',
publicServerURL: 'http://localhost:8378/1'
})).toThrow('SimpleMailgunAdapter requires an API Key and domain.');
done();
});
@@ -145,6 +149,7 @@ describe('server', () => {
domain: 'd',
}
},
publicServerURL: 'http://localhost:8378/1'
})).toThrow('SimpleMailgunAdapter requires an API Key and domain.');
done();
});