From ed320dec7a9cd42815c959d5662a19f6c8161bf6 Mon Sep 17 00:00:00 2001 From: jliddev Date: Wed, 7 Feb 2024 12:21:34 -0600 Subject: [PATCH] FIx tests --- wowup-electron/src/app/app.component.spec.ts | 6 +++--- .../addons/addon-detail/addon-detail.component.spec.ts | 4 ++-- .../addon-update-button.component.spec.ts | 2 +- .../install-from-protocol-dialog.component.spec.ts | 4 ++-- .../install-from-url-dialog.component.spec.ts | 2 +- .../my-addon-status-cell.component.spec.ts | 4 ++-- .../common/alert-dialog/alert-dialog.component.spec.ts | 2 +- .../centered-snackbar/centered-snackbar.component.spec.ts | 2 +- .../common/confirm-dialog/confirm-dialog.component.spec.ts | 2 +- .../external-url-confirmation-dialog.component.spec.ts | 2 +- .../telemetry-dialog/telemetry-dialog.component.spec.ts | 2 +- .../options-app-section.component.spec.ts | 4 ++-- .../options-wow-section.component.spec.ts | 6 +++--- .../wow-client-options/wow-client-options.component.spec.ts | 2 +- .../src/app/directives/external-link.directive.spec.ts | 2 +- .../src/app/pages/get-addons/get-addons.component.spec.ts | 2 +- wowup-electron/src/app/pages/home/home.component.spec.ts | 2 +- .../src/app/pages/my-addons/my-addons.component.spec.ts | 2 +- 18 files changed, 26 insertions(+), 26 deletions(-) diff --git a/wowup-electron/src/app/app.component.spec.ts b/wowup-electron/src/app/app.component.spec.ts index 9fcbdbd..d33b716 100644 --- a/wowup-electron/src/app/app.component.spec.ts +++ b/wowup-electron/src/app/app.component.spec.ts @@ -4,7 +4,7 @@ import { BehaviorSubject, Observable, Subject } from "rxjs"; import { OverlayContainer, OverlayModule } from "@angular/cdk/overlay"; import { HttpClient, HttpClientModule } from "@angular/common/http"; import { TestBed } from "@angular/core/testing"; -import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; +import { MatDialog } from "@angular/material/dialog"; import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { RouterTestingModule } from "@angular/router/testing"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; @@ -45,7 +45,7 @@ describe("AppComponent", () => { ["updateForClientType", "updateForAllClientTypes"], { persistUpdateInformationToWowUpAddon: () => {}, - } + }, ); addonServiceSpy = jasmine.createSpyObj("AddonService", ["processAutoUpdates", "syncAllClients"], { @@ -57,7 +57,7 @@ describe("AppComponent", () => { { getAdRequiredProviders: () => [], }, - {} + {}, ); warcraftInstallationService = jasmine.createSpyObj("WarcraftInstallationService", [""], { diff --git a/wowup-electron/src/app/components/addons/addon-detail/addon-detail.component.spec.ts b/wowup-electron/src/app/components/addons/addon-detail/addon-detail.component.spec.ts index 5d875da..1f98952 100644 --- a/wowup-electron/src/app/components/addons/addon-detail/addon-detail.component.spec.ts +++ b/wowup-electron/src/app/components/addons/addon-detail/addon-detail.component.spec.ts @@ -4,7 +4,7 @@ import { Subject } from "rxjs"; import { HttpClient, HttpClientModule } from "@angular/common/http"; import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core"; import { TestBed } from "@angular/core/testing"; -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from "@angular/material/legacy-dialog"; +import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog"; import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; @@ -43,7 +43,7 @@ describe("AddonDetailComponent", () => { { addonInstalled$: new Subject().asObservable(), getChangelog: () => "", - } + }, ); addonUiService = jasmine.createSpyObj("AddonUiService", [""], {}); diff --git a/wowup-electron/src/app/components/addons/addon-update-button/addon-update-button.component.spec.ts b/wowup-electron/src/app/components/addons/addon-update-button/addon-update-button.component.spec.ts index dcb0fbc..650b167 100644 --- a/wowup-electron/src/app/components/addons/addon-update-button/addon-update-button.component.spec.ts +++ b/wowup-electron/src/app/components/addons/addon-update-button/addon-update-button.component.spec.ts @@ -3,7 +3,7 @@ import { Subject } from "rxjs"; import { HttpClient, HttpClientModule } from "@angular/common/http"; import { TestBed } from "@angular/core/testing"; -import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; +import { MatDialog } from "@angular/material/dialog"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; diff --git a/wowup-electron/src/app/components/addons/install-from-protocol-dialog/install-from-protocol-dialog.component.spec.ts b/wowup-electron/src/app/components/addons/install-from-protocol-dialog/install-from-protocol-dialog.component.spec.ts index fcd570f..672342f 100644 --- a/wowup-electron/src/app/components/addons/install-from-protocol-dialog/install-from-protocol-dialog.component.spec.ts +++ b/wowup-electron/src/app/components/addons/install-from-protocol-dialog/install-from-protocol-dialog.component.spec.ts @@ -1,7 +1,7 @@ import { HttpClient, HttpClientModule } from "@angular/common/http"; import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core"; import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from "@angular/material/legacy-dialog"; +import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog"; import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-compiler"; @@ -31,7 +31,7 @@ describe("InstallFromProtocolDialogComponent", () => { { getAddonForProtocol: () => Promise.resolve(undefined), }, - {} + {}, ); sessionService = jasmine.createSpyObj("SessionService", [""], {}); diff --git a/wowup-electron/src/app/components/addons/install-from-url-dialog/install-from-url-dialog.component.spec.ts b/wowup-electron/src/app/components/addons/install-from-url-dialog/install-from-url-dialog.component.spec.ts index 8ec5039..c0f9751 100644 --- a/wowup-electron/src/app/components/addons/install-from-url-dialog/install-from-url-dialog.component.spec.ts +++ b/wowup-electron/src/app/components/addons/install-from-url-dialog/install-from-url-dialog.component.spec.ts @@ -2,7 +2,7 @@ import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-comp import { HttpClient, HttpClientModule } from "@angular/common/http"; import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog"; +import { MatDialogRef } from "@angular/material/dialog"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; diff --git a/wowup-electron/src/app/components/addons/my-addon-status-cell/my-addon-status-cell.component.spec.ts b/wowup-electron/src/app/components/addons/my-addon-status-cell/my-addon-status-cell.component.spec.ts index c674c28..dfe0285 100644 --- a/wowup-electron/src/app/components/addons/my-addon-status-cell/my-addon-status-cell.component.spec.ts +++ b/wowup-electron/src/app/components/addons/my-addon-status-cell/my-addon-status-cell.component.spec.ts @@ -3,7 +3,7 @@ import { Subject } from "rxjs"; import { HttpClient, HttpClientModule } from "@angular/common/http"; import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; +import { MatDialog } from "@angular/material/dialog"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; import { httpLoaderFactory } from "../../../app.module"; @@ -27,7 +27,7 @@ describe("MyAddonStatusCellComponent", () => { { addonInstalled$: new Subject().asObservable(), addonRemoved$: new Subject().asObservable(), - } + }, ); await TestBed.configureTestingModule({ diff --git a/wowup-electron/src/app/components/common/alert-dialog/alert-dialog.component.spec.ts b/wowup-electron/src/app/components/common/alert-dialog/alert-dialog.component.spec.ts index 90cbdea..4dd8f00 100644 --- a/wowup-electron/src/app/components/common/alert-dialog/alert-dialog.component.spec.ts +++ b/wowup-electron/src/app/components/common/alert-dialog/alert-dialog.component.spec.ts @@ -2,7 +2,7 @@ import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-comp import { HttpClient, HttpClientModule } from "@angular/common/http"; import { TestBed } from "@angular/core/testing"; -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog"; +import { MAT_DIALOG_DATA, MatDialogRef } from "@angular/material/dialog"; import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; diff --git a/wowup-electron/src/app/components/common/centered-snackbar/centered-snackbar.component.spec.ts b/wowup-electron/src/app/components/common/centered-snackbar/centered-snackbar.component.spec.ts index 63b4e27..d29a096 100644 --- a/wowup-electron/src/app/components/common/centered-snackbar/centered-snackbar.component.spec.ts +++ b/wowup-electron/src/app/components/common/centered-snackbar/centered-snackbar.component.spec.ts @@ -1,5 +1,5 @@ import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MAT_LEGACY_SNACK_BAR_DATA as MAT_SNACK_BAR_DATA } from "@angular/material/legacy-snack-bar"; +import { MAT_SNACK_BAR_DATA } from "@angular/material/snack-bar"; import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { MatModule } from "../../../modules/mat-module"; diff --git a/wowup-electron/src/app/components/common/confirm-dialog/confirm-dialog.component.spec.ts b/wowup-electron/src/app/components/common/confirm-dialog/confirm-dialog.component.spec.ts index 009af9f..5d8a664 100644 --- a/wowup-electron/src/app/components/common/confirm-dialog/confirm-dialog.component.spec.ts +++ b/wowup-electron/src/app/components/common/confirm-dialog/confirm-dialog.component.spec.ts @@ -2,7 +2,7 @@ import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-comp import { HttpClient, HttpClientModule } from "@angular/common/http"; import { TestBed } from "@angular/core/testing"; -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog"; +import { MAT_DIALOG_DATA, MatDialogRef } from "@angular/material/dialog"; import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; diff --git a/wowup-electron/src/app/components/common/external-url-confirmation-dialog/external-url-confirmation-dialog.component.spec.ts b/wowup-electron/src/app/components/common/external-url-confirmation-dialog/external-url-confirmation-dialog.component.spec.ts index de97f6d..083f85b 100644 --- a/wowup-electron/src/app/components/common/external-url-confirmation-dialog/external-url-confirmation-dialog.component.spec.ts +++ b/wowup-electron/src/app/components/common/external-url-confirmation-dialog/external-url-confirmation-dialog.component.spec.ts @@ -1,6 +1,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core"; import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from "@angular/material/legacy-dialog"; +import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog"; import { WowUpService } from "../../../services/wowup/wowup.service"; import { getStandardImports } from "../../../tests/test-helpers"; diff --git a/wowup-electron/src/app/components/common/telemetry-dialog/telemetry-dialog.component.spec.ts b/wowup-electron/src/app/components/common/telemetry-dialog/telemetry-dialog.component.spec.ts index fcac040..f1a1148 100644 --- a/wowup-electron/src/app/components/common/telemetry-dialog/telemetry-dialog.component.spec.ts +++ b/wowup-electron/src/app/components/common/telemetry-dialog/telemetry-dialog.component.spec.ts @@ -1,6 +1,6 @@ import { ComponentFixture, TestBed } from "@angular/core/testing"; import { TelemetryDialogComponent } from "./telemetry-dialog.component"; -import { MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog"; +import { MatDialogRef } from "@angular/material/dialog"; import { HttpClient, HttpClientModule } from "@angular/common/http"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; import { httpLoaderFactory } from "../../../app.module"; diff --git a/wowup-electron/src/app/components/options/options-app-section/options-app-section.component.spec.ts b/wowup-electron/src/app/components/options/options-app-section/options-app-section.component.spec.ts index 2467bbe..4903178 100644 --- a/wowup-electron/src/app/components/options/options-app-section/options-app-section.component.spec.ts +++ b/wowup-electron/src/app/components/options/options-app-section/options-app-section.component.spec.ts @@ -3,7 +3,7 @@ import { BehaviorSubject } from "rxjs"; import { HttpClientModule } from "@angular/common/http"; import { ComponentFixture, TestBed } from "@angular/core/testing"; import { FormsModule } from "@angular/forms"; -import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; +import { MatDialog } from "@angular/material/dialog"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { ElectronService } from "../../../services"; @@ -53,7 +53,7 @@ describe("OptionsAppSectionComponent", () => { isWin: false, isLinux: true, isMac: false, - } + }, ); wowUpServiceSpy = jasmine.createSpyObj("WowUpService", ["getStartWithSystem"], { diff --git a/wowup-electron/src/app/components/options/options-wow-section/options-wow-section.component.spec.ts b/wowup-electron/src/app/components/options/options-wow-section/options-wow-section.component.spec.ts index 014505d..1787260 100644 --- a/wowup-electron/src/app/components/options/options-wow-section/options-wow-section.component.spec.ts +++ b/wowup-electron/src/app/components/options/options-wow-section/options-wow-section.component.spec.ts @@ -3,7 +3,7 @@ import { BehaviorSubject } from "rxjs"; import { HttpClient, HttpClientModule } from "@angular/common/http"; import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from "@angular/material/legacy-dialog"; +import { MatDialog, MatDialogModule } from "@angular/material/dialog"; import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; @@ -34,7 +34,7 @@ describe("OptionsWowSectionComponent", () => { }, { products$: new BehaviorSubject([]).asObservable(), - } + }, ); wowUpServiceSpy = jasmine.createSpyObj( @@ -45,7 +45,7 @@ describe("OptionsWowSectionComponent", () => { }, { wowUpReleaseChannel: WowUpReleaseChannelType.Stable, - } + }, ); warcraftInstallationService = jasmine.createSpyObj("WarcraftInstallationService", [""], { diff --git a/wowup-electron/src/app/components/options/wow-client-options/wow-client-options.component.spec.ts b/wowup-electron/src/app/components/options/wow-client-options/wow-client-options.component.spec.ts index 439fdc5..d945649 100644 --- a/wowup-electron/src/app/components/options/wow-client-options/wow-client-options.component.spec.ts +++ b/wowup-electron/src/app/components/options/wow-client-options/wow-client-options.component.spec.ts @@ -2,7 +2,7 @@ import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-comp import { HttpClient, HttpClientModule } from "@angular/common/http"; import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; +import { MatDialog } from "@angular/material/dialog"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; diff --git a/wowup-electron/src/app/directives/external-link.directive.spec.ts b/wowup-electron/src/app/directives/external-link.directive.spec.ts index 86370c0..ef6f942 100644 --- a/wowup-electron/src/app/directives/external-link.directive.spec.ts +++ b/wowup-electron/src/app/directives/external-link.directive.spec.ts @@ -3,7 +3,7 @@ import { ExternalLinkDirective } from "./external-link.directive"; import { Component } from "@angular/core"; import { getStandardImports, mockPreload } from "../tests/test-helpers"; import { WowUpService } from "../services/wowup/wowup.service"; -import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; +import { MatDialog } from "@angular/material/dialog"; import { LinkService } from "../services/links/link.service"; @Component({ diff --git a/wowup-electron/src/app/pages/get-addons/get-addons.component.spec.ts b/wowup-electron/src/app/pages/get-addons/get-addons.component.spec.ts index 5d85e2c..141711d 100644 --- a/wowup-electron/src/app/pages/get-addons/get-addons.component.spec.ts +++ b/wowup-electron/src/app/pages/get-addons/get-addons.component.spec.ts @@ -5,7 +5,7 @@ import { OverlayModule } from "@angular/cdk/overlay"; import { HttpClient, HttpClientModule } from "@angular/common/http"; import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core"; import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; +import { MatDialog } from "@angular/material/dialog"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core"; diff --git a/wowup-electron/src/app/pages/home/home.component.spec.ts b/wowup-electron/src/app/pages/home/home.component.spec.ts index f052ebd..003939e 100644 --- a/wowup-electron/src/app/pages/home/home.component.spec.ts +++ b/wowup-electron/src/app/pages/home/home.component.spec.ts @@ -9,7 +9,7 @@ import { httpLoaderFactory } from "../../app.module"; import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-compiler"; import { BehaviorSubject, Observable, Subject } from "rxjs"; import { HomeComponent } from "./home.component"; -import { MatLegacySnackBar as MatSnackBar } from "@angular/material/legacy-snack-bar"; +import { MatSnackBar } from "@angular/material/snack-bar"; import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AddonScanError, AddonSyncError } from "../../errors"; diff --git a/wowup-electron/src/app/pages/my-addons/my-addons.component.spec.ts b/wowup-electron/src/app/pages/my-addons/my-addons.component.spec.ts index 1f79a36..41918e4 100644 --- a/wowup-electron/src/app/pages/my-addons/my-addons.component.spec.ts +++ b/wowup-electron/src/app/pages/my-addons/my-addons.component.spec.ts @@ -5,7 +5,7 @@ import { OverlayModule } from "@angular/cdk/overlay"; import { HttpClient, HttpClientModule } from "@angular/common/http"; import { CUSTOM_ELEMENTS_SCHEMA, ElementRef } from "@angular/core"; import { ComponentFixture, TestBed } from "@angular/core/testing"; -import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; +import { MatDialog } from "@angular/material/dialog"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";