Fixed tests #15
All checks were successful
Test API before pr merge / test-lint (pull_request) Successful in 11s
Test before pr merge / test-translation-lint (pull_request) Successful in 39s
Test before pr merge / test-lint (pull_request) Successful in 41s
Test before pr merge / test-before-merge (pull_request) Successful in 1m46s
All checks were successful
Test API before pr merge / test-lint (pull_request) Successful in 11s
Test before pr merge / test-translation-lint (pull_request) Successful in 39s
Test before pr merge / test-lint (pull_request) Successful in 41s
Test before pr merge / test-before-merge (pull_request) Successful in 1m46s
This commit is contained in:
parent
52692e3422
commit
16bc5d570b
@ -14,7 +14,7 @@ import { PageDataService } from 'src/app/core/base/page.data.service';
|
|||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
import { PageColumns } from 'src/app/core/base/page.columns';
|
import { PageColumns } from 'src/app/core/base/page.columns';
|
||||||
import { MockPageColumns } from 'src/app/modules/shared/test/page.columns.mock';
|
import { MockPageColumns } from 'src/app/modules/shared/test/page.columns.mock';
|
||||||
import { DomainsDataService } from 'src/app/modules/admin/domains/domains.data.service';
|
import { DomainsDataService } from 'src/app/modules/admin/administration/domains/domains.data.service';
|
||||||
|
|
||||||
describe('HistoryComponent', () => {
|
describe('HistoryComponent', () => {
|
||||||
let component: HistoryComponent<unknown>;
|
let component: HistoryComponent<unknown>;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||||
import { ToastService } from 'src/app/service/toast.service';
|
import { ToastService } from 'src/app/service/toast.service';
|
||||||
import { FormPageBase } from 'src/app/core/base/form-page-base';
|
import { FormPageBase } from 'src/app/core/base/form-page-base';
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, ViewChild } from '@angular/core';
|
||||||
import { PageBase } from 'src/app/core/base/page-base';
|
import { PageBase } from 'src/app/core/base/page-base';
|
||||||
import { ToastService } from 'src/app/service/toast.service';
|
import { ToastService } from 'src/app/service/toast.service';
|
||||||
import { ConfirmationDialogService } from 'src/app/service/confirmation-dialog.service';
|
import { ConfirmationDialogService } from 'src/app/service/confirmation-dialog.service';
|
||||||
import { ShortUrl } from 'src/app/model/entities/short-url';
|
import { ShortUrl } from 'src/app/model/entities/short-url';
|
||||||
import { ShortUrlsDataService } from 'src/app/modules/admin/short-urls/short-urls.data.service';
|
import { ShortUrlsDataService } from 'src/app/modules/admin/short-urls/short-urls.data.service';
|
||||||
import { ShortUrlsColumns } from 'src/app/modules/admin/short-urls/short-urls.columns';
|
import { ShortUrlsColumns } from 'src/app/modules/admin/short-urls/short-urls.columns';
|
||||||
import { AuthService } from 'src/app/service/auth.service';
|
|
||||||
import { Filter } from 'src/app/model/graphql/filter/filter.model';
|
import { Filter } from 'src/app/model/graphql/filter/filter.model';
|
||||||
import QrCodeWithLogo from 'qrcode-with-logos';
|
import QrCodeWithLogo from 'qrcode-with-logos';
|
||||||
import { FileUpload, FileUploadHandlerEvent } from 'primeng/fileupload';
|
import { FileUpload, FileUploadHandlerEvent } from 'primeng/fileupload';
|
||||||
|
@ -8,7 +8,6 @@ import {
|
|||||||
UserSpaceUpdateInput,
|
UserSpaceUpdateInput,
|
||||||
} from 'src/app/model/entities/user-space';
|
} from 'src/app/model/entities/user-space';
|
||||||
import { UserSpacesDataService } from 'src/app/modules/admin/user-spaces/user-spaces.data.service';
|
import { UserSpacesDataService } from 'src/app/modules/admin/user-spaces/user-spaces.data.service';
|
||||||
import { User } from 'src/app/model/auth/user';
|
|
||||||
import { catchError } from 'rxjs/operators';
|
import { catchError } from 'rxjs/operators';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
import { ChipInputComponent } from './chip-input.component';
|
import { ChipInputComponent } from './chip-input.component';
|
||||||
|
|
||||||
@ -8,9 +9,9 @@ describe('ChipInputComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [ChipInputComponent]
|
declarations: [ChipInputComponent],
|
||||||
})
|
imports: [FormsModule], // Import FormsModule to resolve ngModel
|
||||||
.compileComponents();
|
}).compileComponents();
|
||||||
|
|
||||||
fixture = TestBed.createComponent(ChipInputComponent);
|
fixture = TestBed.createComponent(ChipInputComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { SideMenuComponent } from './side-menu.component';
|
import { SideMenuComponent } from './side-menu.component';
|
||||||
|
import { SharedModule } from 'src/app/modules/shared/shared.module';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { AuthService } from 'src/app/service/auth.service';
|
||||||
|
import { KeycloakService } from 'keycloak-angular';
|
||||||
|
import { ErrorHandlingService } from 'src/app/service/error-handling.service';
|
||||||
|
import { ToastService } from 'src/app/service/toast.service';
|
||||||
|
import { ConfirmationService, MessageService } from 'primeng/api';
|
||||||
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
import { of } from 'rxjs';
|
||||||
|
|
||||||
describe('SideMenuComponent', () => {
|
describe('SideMenuComponent', () => {
|
||||||
let component: SideMenuComponent;
|
let component: SideMenuComponent;
|
||||||
@ -9,6 +18,21 @@ describe('SideMenuComponent', () => {
|
|||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [SideMenuComponent],
|
declarations: [SideMenuComponent],
|
||||||
|
imports: [SharedModule, TranslateModule.forRoot()],
|
||||||
|
providers: [
|
||||||
|
AuthService,
|
||||||
|
KeycloakService,
|
||||||
|
ErrorHandlingService,
|
||||||
|
ToastService,
|
||||||
|
MessageService,
|
||||||
|
ConfirmationService,
|
||||||
|
{
|
||||||
|
provide: ActivatedRoute,
|
||||||
|
useValue: {
|
||||||
|
snapshot: { params: of({}) },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|
||||||
fixture = TestBed.createComponent(SideMenuComponent);
|
fixture = TestBed.createComponent(SideMenuComponent);
|
||||||
|
Loading…
Reference in New Issue
Block a user