This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Angular | |
import { HttpRequest } from "@angular/common/http"; | |
import { HttpTestingController, TestRequest } from "@angular/common/http/testing"; | |
import { async, TestBed } from "@angular/core/testing"; | |
// Models | |
import { HttpMockModel } from "./http-mock.model"; | |
// tslint:disable: max-line-length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Angular | |
import { Component, ViewChild } from "@angular/core"; | |
import { fakeAsync, TestModuleMetadata } from "@angular/core/testing"; | |
// Third-Party | |
import { of } from "rxjs"; | |
// Modules | |
import { ProposalPaymentUnitModule } from "@vms/proposal/detail/payment-unit/proposal-payment-unit.module"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Models | |
import { BidType } from "@vms/shared/objects/bid-type"; | |
import { ApiResult } from "@vms/shared/objects/data-request"; | |
import { George, GeorgeOfficeDto } from "@vms/shared/objects/admin/george"; | |
import { PaymentType } from "@vms/shared/objects/payment-type"; | |
import { Proposal } from "@vms/proposal/objects/proposal"; | |
import { ProposalCertificationStatus } from "@vms/shared/objects/proposal-certification-status"; | |
import { ProposalStatus } from "@vms/shared/objects/proposal-status"; | |
import { TestHttpRequest } from "@vms/test/front-end-testing/test-objects"; | |
import { User } from "@vms/shared/objects/admin/user"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Angular | |
import { ComponentFixture, TestBed, getTestBed, tick, TestModuleMetadata, flush } from "@angular/core/testing"; | |
import { combineModules, baseTestingModule, providedInDependencies } from "./component-module-dependencies"; | |
import { AbstractControl } from "@angular/forms"; | |
import { NgZone } from "@angular/core"; | |
export abstract class BaseTest { | |
protected completeTestingModuleMeta: TestModuleMetadata; | |
constructor( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Angular | |
import { Type } from "@angular/core"; | |
import { TestBed, async, TestModuleMetadata } from "@angular/core/testing"; | |
import { FormGroup, FormControl } from "@angular/forms"; | |
import { Router } from "@angular/router"; | |
// Services | |
import { ConfigurationVariableService } from "@vms/services/core/configuration-variable.service"; | |
// Models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Angular | |
import { Component, ViewChild } from "@angular/core"; | |
import { fakeAsync, TestModuleMetadata } from "@angular/core/testing"; | |
// Third-Party | |
import { of } from "rxjs"; | |
// Modules | |
import { ProposalHeaderModule } from "@vms/proposal/detail/proposal/proposal-header.module"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Angular | |
import { CommonModule } from "@angular/common"; | |
import { NgModule } from "@angular/core"; | |
import { RouterModule } from "@angular/router"; | |
// Modules | |
import { NgxKlaBootstrapFormComponentsModule } from "ngx-kla-bootstrap-form-components"; | |
import { VmsDetailModule } from "@vms/vms-detail/vms-detail.module"; | |
import { UiComponentModule } from "@vms/shared/ui-component/ui-component.module"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Host Component | |
@Component({ | |
selector: `test-host-component`, | |
template: ` | |
<vms-proposal-header [proposal]="proposal"> | |
</vms-proposal-header> | |
`, | |
}) | |
class HostComponent { | |
// create access to the component under test for use in test cases |