Skip to content
Snippets Groups Projects
Commit bd16b659 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-7000 CR

parent 8e2dcec3
Branches
Tags
No related merge requests found
...@@ -22,15 +22,15 @@ ...@@ -22,15 +22,15 @@
* unter der Lizenz sind dem Lizenztext zu entnehmen. * unter der Lizenz sind dem Lizenztext zu entnehmen.
*/ */
import { OrganisationsEinheitFormContainerComponent } from '@admin-client/admin-settings'; import { OrganisationsEinheitFormContainerComponent } from '@admin-client/admin-settings';
import { ApiRootLinkRel, ApiRootService } from '@alfa-client/api-root-shared'; import { ApiRootLinkRel, ApiRootResource, ApiRootService } from '@alfa-client/api-root-shared';
import { createStateResource, TechSharedModule } from '@alfa-client/tech-shared'; import { createStateResource, StateResource, TechSharedModule } from '@alfa-client/tech-shared';
import { existsAsHtmlElement, mock, Mock, notExistsAsHtmlElement } from '@alfa-client/test-utils'; import { existsAsHtmlElement, mock, Mock, notExistsAsHtmlElement } from '@alfa-client/test-utils';
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { createApiRootResource } from 'libs/api-root-shared/test/api-root'; import { createApiRootResource } from 'libs/api-root-shared/test/api-root';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test'; import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { singleColdCompleted } from 'libs/tech-shared/test/marbles'; import { singleColdCompleted } from 'libs/tech-shared/test/marbles';
import { MockComponent } from 'ng-mocks'; import { MockComponent } from 'ng-mocks';
import { of } from 'rxjs'; import { Observable, of } from 'rxjs';
import { OrganisationsEinheitFormPageComponent } from './organisationseinheit-form-page.component'; import { OrganisationsEinheitFormPageComponent } from './organisationseinheit-form-page.component';
describe('OrganisationsEinheitFormPageComponent', () => { describe('OrganisationsEinheitFormPageComponent', () => {
...@@ -64,8 +64,8 @@ describe('OrganisationsEinheitFormPageComponent', () => { ...@@ -64,8 +64,8 @@ describe('OrganisationsEinheitFormPageComponent', () => {
describe('component', () => { describe('component', () => {
describe('ngOnInit', () => { describe('ngOnInit', () => {
const apiRootStateResource = createStateResource(createApiRootResource()); const apiRootStateResource: StateResource<ApiRootResource> = createStateResource(createApiRootResource());
const apiRootStateResource$ = of(apiRootStateResource); const apiRootStateResource$: Observable<StateResource<ApiRootResource>> = of(apiRootStateResource);
beforeEach(() => { beforeEach(() => {
apiRootService.getApiRoot.mockReturnValue(apiRootStateResource$); apiRootService.getApiRoot.mockReturnValue(apiRootStateResource$);
......
...@@ -22,15 +22,15 @@ ...@@ -22,15 +22,15 @@
* unter der Lizenz sind dem Lizenztext zu entnehmen. * unter der Lizenz sind dem Lizenztext zu entnehmen.
*/ */
import { OrganisationsEinheitContainerComponent } from '@admin-client/admin-settings'; import { OrganisationsEinheitContainerComponent } from '@admin-client/admin-settings';
import { ApiRootLinkRel, ApiRootService } from '@alfa-client/api-root-shared'; import { ApiRootLinkRel, ApiRootResource, ApiRootService } from '@alfa-client/api-root-shared';
import { createStateResource, TechSharedModule } from '@alfa-client/tech-shared'; import { createStateResource, StateResource, TechSharedModule } from '@alfa-client/tech-shared';
import { existsAsHtmlElement, mock, Mock, notExistsAsHtmlElement } from '@alfa-client/test-utils'; import { existsAsHtmlElement, mock, Mock, notExistsAsHtmlElement } from '@alfa-client/test-utils';
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { createApiRootResource } from 'libs/api-root-shared/test/api-root'; import { createApiRootResource } from 'libs/api-root-shared/test/api-root';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test'; import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { singleColdCompleted } from 'libs/tech-shared/test/marbles'; import { singleColdCompleted } from 'libs/tech-shared/test/marbles';
import { MockComponent } from 'ng-mocks'; import { MockComponent } from 'ng-mocks';
import { of } from 'rxjs'; import { Observable, of } from 'rxjs';
import { OrganisationsEinheitPageComponent } from './organisationseinheit-page.component'; import { OrganisationsEinheitPageComponent } from './organisationseinheit-page.component';
describe('OrganisationsEinheitPageComponent', () => { describe('OrganisationsEinheitPageComponent', () => {
...@@ -64,8 +64,8 @@ describe('OrganisationsEinheitPageComponent', () => { ...@@ -64,8 +64,8 @@ describe('OrganisationsEinheitPageComponent', () => {
describe('component', () => { describe('component', () => {
describe('ngOnInit', () => { describe('ngOnInit', () => {
const apiRootStateResource = createStateResource(createApiRootResource()); const apiRootStateResource: StateResource<ApiRootResource> = createStateResource(createApiRootResource());
const apiRootStateResource$ = of(apiRootStateResource); const apiRootStateResource$: Observable<StateResource<ApiRootResource>> = of(apiRootStateResource);
beforeEach(() => { beforeEach(() => {
apiRootService.getApiRoot.mockReturnValue(apiRootStateResource$); apiRootService.getApiRoot.mockReturnValue(apiRootStateResource$);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment