Browse Source

chore(core): Add others group and sort compare func injection tokens to core testing module to prevent injection errors

pull/19575/head
Yusuf Çırak 2 years ago
parent
commit
4ecd310f0d
  1. 11
      npm/ng-packs/packages/core/testing/src/lib/core-testing.module.ts

11
npm/ng-packs/packages/core/testing/src/lib/core-testing.module.ts

@ -8,6 +8,9 @@ import {
PermissionService,
RestService,
INCUDE_LOCALIZATION_RESOURCES_TOKEN,
OTHERS_GROUP,
compareFuncFactory,
SORT_COMPARE_FUNC,
} from '@abp/ng.core';
import { APP_BASE_HREF } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';
@ -65,6 +68,14 @@ export class CoreTestingModule {
provide: INCUDE_LOCALIZATION_RESOURCES_TOKEN,
useValue: false,
},
{
provide: OTHERS_GROUP,
useValue: 'AbpUi::OthersGroup',
},
{
provide: SORT_COMPARE_FUNC,
useFactory: compareFuncFactory,
},
provideRoutes(routes),
],
};

Loading…
Cancel
Save