Skip to content

Commit

Permalink
remove deprecated testing module
Browse files Browse the repository at this point in the history
  • Loading branch information
k-genov committed Dec 3, 2024
1 parent 5a7f0db commit a1045c8
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 76 deletions.
1 change: 0 additions & 1 deletion projects/scion/workbench/src/lib/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ export * from './microfrontend-platform/public_api';
export * from './startup/public_api';
export * from './logging/public_api';
export * from './storage/public_api';
export * from './testing/public_api';
12 changes: 0 additions & 12 deletions projects/scion/workbench/src/lib/testing/public_api.ts

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions projects/scion/workbench/src/lib/testing/workbench.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ import {Router} from '@angular/router';
* - disables animations
* - performs the initial navigation
*
* ### Usage
*
* ```
* beforeEach(() => {
* TestBed.configureTestingModule({
* imports: [
* WorkbenchTestingModule.forTest(),
* RouterTestingModule.withRoutes([
* {path: 'test-view', component: TestComponent},
* ]),
* ],
* });
* });
* ```
*/
export function provideWorkbenchForTest(config?: WorkbenchConfig & {mainAreaInitialPartId?: string}): EnvironmentProviders {
return makeEnvironmentProviders([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* SPDX-License-Identifier: EPL-2.0
*/

import {ApplicationRef, ComponentFactoryResolver, computed, Injectable, Injector, NgZone, signal, Signal} from '@angular/core';
import {ApplicationRef, computed, Injectable, Injector, NgZone, signal, Signal} from '@angular/core';
import {take} from 'rxjs/operators';
import {createElement, setStyle} from '../common/dom.util';
import {ViewDragData, ViewDragService} from './view-drag.service';
Expand Down Expand Up @@ -40,8 +40,6 @@ export class ViewTabDragImageRenderer {
private _constrainDragImageRectFn: ((rect: ViewDragImageRect) => ViewDragImageRect) | null = null;

constructor(private _viewDragService: ViewDragService,
// TODO [Angular 19][https://github.com/angular/components/issues/24334] Alternative constructor (ComponentFactoryResolver is deprecated)
private _componentFactoryResolver: ComponentFactoryResolver,
private _applicationRef: ApplicationRef,
private _injector: Injector,
private _zone: NgZone) {
Expand Down Expand Up @@ -132,7 +130,7 @@ export class ViewTabDragImageRenderer {
height: `${dragPosition.height}px`,
},
});
this._viewDragImagePortalOutlet = new DomPortalOutlet(outletElement, this._componentFactoryResolver, this._applicationRef, this._injector);
this._viewDragImagePortalOutlet = new DomPortalOutlet(outletElement, null, this._applicationRef, this._injector);
const componentRef = this._viewDragImagePortalOutlet.attachComponentPortal(new ComponentPortal(ViewTabDragImageComponent, null, Injector.create({
parent: this._injector,
providers: [
Expand Down

0 comments on commit a1045c8

Please sign in to comment.