Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up logs in unit test #2344

Merged
merged 10 commits into from
Sep 5, 2024
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('DialogActionsDuplicatedMergedConfirmedComponent', () => {
let component: DialogActionsDuplicatedMergedConfirmedComponent
Expand All @@ -17,6 +18,7 @@ describe('DialogActionsDuplicatedMergedConfirmedComponent', () => {
{ provide: MatDialogRef, useValue: {} },
{ provide: MAT_DIALOG_DATA, useValue: {} },
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'
import { RouterTestingModule } from '@angular/router/testing'
import { TwoFactorAuthenticationService } from '../../../core/two-factor-authentication/two-factor-authentication.service'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('DialogActionsDuplicatedTwoFactorAuthComponent', () => {
let component: DialogActionsDuplicatedTwoFactorAuthComponent
let fixture: ComponentFixture<DialogActionsDuplicatedTwoFactorAuthComponent>
Expand All @@ -36,6 +38,7 @@ describe('DialogActionsDuplicatedTwoFactorAuthComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { SnackbarService } from '../../../cdk/snackbar/snackbar.service'
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar'
import { Overlay } from '@angular/cdk/overlay'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('DialogActionsDuplicatedComponent', () => {
let component: DialogActionsDuplicatedComponent
let fixture: ComponentFixture<DialogActionsDuplicatedComponent>
Expand All @@ -34,6 +36,7 @@ describe('DialogActionsDuplicatedComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('DialogSecurityAlternateAccountDeleteComponent', () => {
let component: DialogSecurityAlternateAccountDeleteComponent
let fixture: ComponentFixture<DialogSecurityAlternateAccountDeleteComponent>
Expand All @@ -17,6 +19,7 @@ describe('DialogSecurityAlternateAccountDeleteComponent', () => {
{ provide: MatDialogRef, useValue: {} },
{ provide: MAT_DIALOG_DATA, useValue: {} },
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack
import { Overlay } from '@angular/cdk/overlay'
import { AccountActionsDeactivateService } from '../../../core/account-actions-deactivate/account-actions-deactivate.service'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsActionsDeactivateComponent', () => {
let component: SettingsActionsDeactivateComponent
let fixture: ComponentFixture<SettingsActionsDeactivateComponent>
Expand All @@ -36,6 +38,7 @@ describe('SettingsActionsDeactivateComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog'
import { Overlay } from '@angular/cdk/overlay'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsActionsDownloadComponent', () => {
let component: SettingsActionsDownloadComponent
let fixture: ComponentFixture<SettingsActionsDownloadComponent>
Expand All @@ -30,6 +32,7 @@ describe('SettingsActionsDownloadComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
MatLegacyDialogModule as MatDialogModule,
} from '@angular/material/legacy-dialog'
import { WINDOW_PROVIDERS } from '../../../cdk/window'
import { UntypedFormBuilder } from '@angular/forms'
import { ReactiveFormsModule, UntypedFormBuilder } from '@angular/forms'
import { PlatformInfoService } from '../../../cdk/platform-info'
import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service'
import { SnackbarService } from '../../../cdk/snackbar/snackbar.service'
Expand All @@ -17,13 +17,20 @@ import { Overlay } from '@angular/cdk/overlay'
import { UserService } from '../../../core'
import { AccountActionsDuplicatedService } from '../../../core/account-actions-duplicated/account-actions-duplicated.service'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsActionsDuplicatedComponent', () => {
let component: SettingsActionsDuplicatedComponent
let fixture: ComponentFixture<SettingsActionsDuplicatedComponent>

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [HttpClientTestingModule, MatDialogModule, RouterTestingModule],
imports: [
HttpClientTestingModule,
MatDialogModule,
RouterTestingModule,
ReactiveFormsModule,
],
declarations: [SettingsActionsDuplicatedComponent],
providers: [
WINDOW_PROVIDERS,
Expand All @@ -37,6 +44,7 @@ describe('SettingsActionsDuplicatedComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { WINDOW_PROVIDERS } from 'src/app/cdk/window/window.service'
import { ActivatedRoute } from '@angular/router'
import { of } from 'rxjs'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsActionsComponent', () => {
let component: SettingsActionsComponent
let fixture: ComponentFixture<SettingsActionsComponent>
Expand All @@ -16,6 +18,7 @@ describe('SettingsActionsComponent', () => {
WINDOW_PROVIDERS,
{ provide: ActivatedRoute, useValue: { fragment: of({}) } },
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { UserInfoService } from 'src/app/core/user-info/user-info.service'
import { RecordService } from 'src/app/core/record/record.service'
import { of } from 'rxjs'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsDefaultsEmailFrequencyComponent', () => {
let component: SettingsDefaultsEmailFrequencyComponent
let fixture: ComponentFixture<SettingsDefaultsEmailFrequencyComponent>
Expand Down Expand Up @@ -42,6 +44,7 @@ describe('SettingsDefaultsEmailFrequencyComponent', () => {
},
},
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog'
import { Overlay } from '@angular/cdk/overlay'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsDefaultsLanguageComponent', () => {
let component: SettingsDefaultsLanguageComponent
let fixture: ComponentFixture<SettingsDefaultsLanguageComponent>
Expand All @@ -32,6 +34,7 @@ describe('SettingsDefaultsLanguageComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog'
import { Overlay } from '@angular/cdk/overlay'
import { AccountDefaultVisibilityService } from '../../../core/account-default-visibility/account-default-visibility.service'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsDefaultsVisibilityComponent', () => {
let component: SettingsDefaultsVisibilityComponent
let fixture: ComponentFixture<SettingsDefaultsVisibilityComponent>
Expand All @@ -35,6 +37,7 @@ describe('SettingsDefaultsVisibilityComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'
import { SettingsDefaultsComponent } from './settings-defaults.component'
import { WINDOW_PROVIDERS } from '../../../cdk/window'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsDefaultsComponent', () => {
let component: SettingsDefaultsComponent
let fixture: ComponentFixture<SettingsDefaultsComponent>
Expand All @@ -11,6 +13,7 @@ describe('SettingsDefaultsComponent', () => {
await TestBed.configureTestingModule({
declarations: [SettingsDefaultsComponent],
providers: [WINDOW_PROVIDERS],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack
import { Overlay } from '@angular/cdk/overlay'
import { AccountSecurityAlternateSignInService } from '../../../core/account-security-alternate-sign-in/account-security-alternate-sign-in.service'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsSecurityAlternateSignInComponent', () => {
let component: SettingsSecurityAlternateSignInComponent
let fixture: ComponentFixture<SettingsSecurityAlternateSignInComponent>
Expand All @@ -33,6 +35,7 @@ describe('SettingsSecurityAlternateSignInComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog'
import { Overlay } from '@angular/cdk/overlay'
import { RouterTestingModule } from '@angular/router/testing'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsSecurityPasswordComponent', () => {
let component: SettingsSecurityPasswordComponent
let fixture: ComponentFixture<SettingsSecurityPasswordComponent>
Expand All @@ -30,6 +32,7 @@ describe('SettingsSecurityPasswordComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack
import { Overlay } from '@angular/cdk/overlay'
import { TwoFactorAuthenticationService } from '../../../core/two-factor-authentication/two-factor-authentication.service'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsSecurityTwoFactorAuthComponent', () => {
let component: SettingsSecurityTwoFactorAuthComponent
let fixture: ComponentFixture<SettingsSecurityTwoFactorAuthComponent>
Expand All @@ -30,6 +32,7 @@ describe('SettingsSecurityTwoFactorAuthComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack
import { Overlay } from '@angular/cdk/overlay'
import { TwoFactorAuthenticationService } from '../../../core/two-factor-authentication/two-factor-authentication.service'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsSecurityComponent', () => {
let component: SettingsSecurityComponent
let fixture: ComponentFixture<SettingsSecurityComponent>
Expand All @@ -30,6 +32,7 @@ describe('SettingsSecurityComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack
import { Overlay } from '@angular/cdk/overlay'
import { UserService } from '../../../core'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsSharingHtmlCodeComponent', () => {
let component: SettingsSharingHtmlCodeComponent
let fixture: ComponentFixture<SettingsSharingHtmlCodeComponent>
Expand All @@ -30,6 +32,7 @@ describe('SettingsSharingHtmlCodeComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'

import { SettingsSharingQrCodeComponent } from './settings-sharing-qr-code.component'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsSharingQrCodeComponent', () => {
let component: SettingsSharingQrCodeComponent
let fixture: ComponentFixture<SettingsSharingQrCodeComponent>

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [SettingsSharingQrCodeComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
} from '@angular/material/legacy-dialog'
import { WINDOW_PROVIDERS } from '../../../cdk/window'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsSharingComponent', () => {
let component: SettingsSharingComponent
let fixture: ComponentFixture<SettingsSharingComponent>
Expand All @@ -15,6 +17,7 @@ describe('SettingsSharingComponent', () => {
await TestBed.configureTestingModule({
declarations: [SettingsSharingComponent],
providers: [WINDOW_PROVIDERS],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'
import { SettingsComponent } from './settings.component'
import { WINDOW_PROVIDERS } from '../../../cdk/window'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('SettingsComponent', () => {
let component: SettingsComponent
let fixture: ComponentFixture<SettingsComponent>
Expand All @@ -11,6 +13,7 @@ describe('SettingsComponent', () => {
await TestBed.configureTestingModule({
declarations: [SettingsComponent],
providers: [WINDOW_PROVIDERS],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog'
import { Overlay } from '@angular/cdk/overlay'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('AccountSettingsComponent', () => {
let component: AccountSettingsComponent
let fixture: ComponentFixture<AccountSettingsComponent>
Expand All @@ -28,6 +30,7 @@ describe('AccountSettingsComponent', () => {
MatDialog,
Overlay,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

describe('DialogAddTrustedIndividualsComponent', () => {
let component: DialogAddTrustedIndividualsYourOwnEmailComponent
let fixture: ComponentFixture<DialogAddTrustedIndividualsYourOwnEmailComponent>
Expand All @@ -18,6 +20,7 @@ describe('DialogAddTrustedIndividualsComponent', () => {
{ provide: MatDialogRef, useValue: {} },
{ provide: MAT_DIALOG_DATA, useValue: {} },
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents()
})

Expand Down
Loading
Loading