Browse Source
Merge pull request #19575 from abpframework/issue-19570
Angular: Update `CoreTestingModule` for preventing dependency injection errors
pull/19584/head
Masum ULU
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
11 additions and
0 deletions
-
npm/ng-packs/packages/core/testing/src/lib/core-testing.module.ts
|
|
@ -8,6 +8,9 @@ import { |
|
|
PermissionService, |
|
|
PermissionService, |
|
|
RestService, |
|
|
RestService, |
|
|
INCUDE_LOCALIZATION_RESOURCES_TOKEN, |
|
|
INCUDE_LOCALIZATION_RESOURCES_TOKEN, |
|
|
|
|
|
OTHERS_GROUP, |
|
|
|
|
|
compareFuncFactory, |
|
|
|
|
|
SORT_COMPARE_FUNC, |
|
|
} from '@abp/ng.core'; |
|
|
} from '@abp/ng.core'; |
|
|
import { APP_BASE_HREF } from '@angular/common'; |
|
|
import { APP_BASE_HREF } from '@angular/common'; |
|
|
import { ModuleWithProviders, NgModule } from '@angular/core'; |
|
|
import { ModuleWithProviders, NgModule } from '@angular/core'; |
|
|
@ -65,6 +68,14 @@ export class CoreTestingModule { |
|
|
provide: INCUDE_LOCALIZATION_RESOURCES_TOKEN, |
|
|
provide: INCUDE_LOCALIZATION_RESOURCES_TOKEN, |
|
|
useValue: false, |
|
|
useValue: false, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
provide: OTHERS_GROUP, |
|
|
|
|
|
useValue: 'AbpUi::OthersGroup', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
provide: SORT_COMPARE_FUNC, |
|
|
|
|
|
useFactory: compareFuncFactory, |
|
|
|
|
|
}, |
|
|
provideRoutes(routes), |
|
|
provideRoutes(routes), |
|
|
], |
|
|
], |
|
|
}; |
|
|
}; |
|
|
|