chore(web): put sign-in email notifications setting under paywall (#2249)
* chore: upgrade setting names to value objects * chore(web): put sign-in email notifications setting under paywall * chore: fix using setting name value objects in mocha tests * chore: fix wording on email notifications titles
This commit is contained in:
@@ -26,13 +26,13 @@ describe('account recovery', function () {
|
||||
})
|
||||
|
||||
it('should get the same recovery code at each consecutive call', async () => {
|
||||
let recoveryCodesSetting = await application.settings.getSetting(SettingName.RecoveryCodes)
|
||||
let recoveryCodesSetting = await application.settings.getSetting(SettingName.create(SettingName.NAMES.RecoveryCodes).getValue())
|
||||
expect(recoveryCodesSetting).to.equal(undefined)
|
||||
|
||||
const generatedRecoveryCodesAfterFirstCall = await application.getRecoveryCodes.execute()
|
||||
expect(generatedRecoveryCodesAfterFirstCall.getValue().length).to.equal(49)
|
||||
|
||||
recoveryCodesSetting = await application.settings.getSetting(SettingName.RecoveryCodes)
|
||||
recoveryCodesSetting = await application.settings.getSetting(SettingName.create(SettingName.NAMES.RecoveryCodes).getValue())
|
||||
expect(recoveryCodesSetting).to.equal(generatedRecoveryCodesAfterFirstCall.getValue())
|
||||
|
||||
const fetchedRecoveryCodesOnTheSecondCall = await application.getRecoveryCodes.execute()
|
||||
|
||||
Reference in New Issue
Block a user