mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
intermediate commit
This commit is contained in:
12
src/app/shared/testing/component-injector-stub.ts
Normal file
12
src/app/shared/testing/component-injector-stub.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ComponentFactory } from '@angular/core';
|
||||
import { create } from 'domain';
|
||||
|
||||
export class ComponentInjectorStub {
|
||||
resolveComponentFactory(): ComponentFactory<any> {
|
||||
return {
|
||||
create() {
|
||||
return { hostView: {}, viewContainerParent: {}, }
|
||||
}
|
||||
} as any;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user