-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2f36e1
commit 19b0462
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -361,4 +361,26 @@ describe('server', () => { | |
expect(() => setServerConfiguration({ revokeSessionOnPasswordReset: 'non-bool' })).toThrow(); | ||
done(); | ||
}); | ||
|
||
it('fails if you set verifyUserEmails to true without setting an app ID or publicServerURL (regression test for #1649)', done => { | ||
expect(() => setServerConfiguration({ | ||
serverURL: 'http://localhost:8378/1', | ||
appId: 'test', | ||
appName: 'unused', | ||
javascriptKey: 'test', | ||
dotNetKey: 'windows', | ||
clientKey: 'client', | ||
restAPIKey: 'rest', | ||
masterKey: 'test', | ||
collectionPrefix: 'test_', | ||
fileKey: 'test', | ||
verifyUserEmails: true, | ||
emailAdapter: MockEmailAdapterWithOptions({ | ||
fromAddress: '[email protected]', | ||
apiKey: 'k', | ||
domain: 'd', | ||
}), | ||
})).toThrow('A public server url is required when using email verification.'); | ||
done(); | ||
}); | ||
}); |