Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Mar 26, 2024
1 parent 6ed8f3c commit 3431d2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/snjs/lib/Services/Settings/SettingsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { SettingName } from '@standardnotes/domain-core'
import { SettingData } from '@standardnotes/responses'
import {
MuteSignInEmailsOption,
MuteFailedBackupsEmailsOption,
EmailBackupFrequency,
ListedAuthorSecretsData,
LogSessionUserAgentOption,
Expand All @@ -13,7 +12,6 @@ type SettingType =
| EmailBackupFrequency
| ListedAuthorSecretsData
| LogSessionUserAgentOption
| MuteFailedBackupsEmailsOption
| MuteSignInEmailsOption
| MuteMarketingEmailsOption

Expand Down
8 changes: 4 additions & 4 deletions packages/snjs/mocha/settings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ describe('settings service', function () {
true,
)
await application.settings.updateSetting(
SettingName.create(SettingName.NAMES.MuteFailedBackupsEmails).getValue(),
MuteFailedBackupsEmailsOption.Muted,
SettingName.create(SettingName.NAMES.LogSessionUserAgent).getValue(),
LogSessionUserAgentOption.Enabled,
)
const settings = await application.settings.listSettings()
expect(settings.getSettingValue(SettingName.create(SettingName.NAMES.MuteFailedBackupsEmails).getValue())).to.eql(
MuteFailedBackupsEmailsOption.Muted,
expect(settings.getSettingValue(SettingName.create(SettingName.NAMES.LogSessionUserAgent).getValue())).to.eql(
LogSessionUserAgentOption.Enabled,
)
expect(settings.getSettingValue(SettingName.create(SettingName.NAMES.MfaSecret).getValue())).to.not.be.ok
})
Expand Down

0 comments on commit 3431d2f

Please sign in to comment.