feat: migrate everything to standalone and fix build errors

This commit is contained in:
Enea Jahollari
2023-09-25 12:43:29 +02:00
parent 4171ccc8f3
commit 54614c21f0
1311 changed files with 13140 additions and 8009 deletions

View File

@@ -176,22 +176,20 @@ describe('ResourcePolicyFormComponent test suite', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
imports: [
BrowserModule,
CommonModule,
FormsModule,
NgbModule,
NoopAnimationsModule,
ReactiveFormsModule,
TranslateModule.forRoot()
],
declarations: [
TranslateModule.forRoot(),
FormComponent,
EpersonGroupListComponent,
ResourcePolicyFormComponent,
TestComponent
],
providers: [
],
providers: [
{ provide: ActivatedRoute, useValue: activatedRouteStub },
{ provide: Router, useValue: new RouterMock() },
{ provide: Store, useValue: StoreMock },
@@ -203,11 +201,11 @@ describe('ResourcePolicyFormComponent test suite', () => {
FormBuilderService,
ChangeDetectorRef,
ResourcePolicyFormComponent
],
schemas: [
],
schemas: [
NO_ERRORS_SCHEMA
]
}).compileComponents();
]
}).compileComponents();
}));
describe('', () => {
@@ -451,8 +449,14 @@ describe('ResourcePolicyFormComponent test suite', () => {
// declare a test component
@Component({
selector: 'ds-test-cmp',
template: ``
selector: 'ds-test-cmp',
template: ``,
standalone: true,
imports: [BrowserModule,
CommonModule,
FormsModule,
NgbModule,
ReactiveFormsModule]
})
class TestComponent {