Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ProfileCardComponent,
UserStatsCardComponent,
GameCardComponent,
GameInviteComponent,
RecentGamesComponent,
ProfileSettingsComponent,
MyQuestionsComponent,
QuestionAddUpdateComponent
],
imports: [
// rwa modules
SharedModule,
UserRoutingModule,
//ngrx feature store
StoreModule.forFeature('user', reducer),
//ngrx effects
EffectsModule.forFeature(effects),
],
providers: [],
exports: [
ProfileCardComponent,
UserStatsCardComponent,
GameCardComponent,
GameInviteComponent,
RecentGamesComponent,
ProfileSettingsComponent,
MyQuestionsComponent,
QuestionAddUpdateComponent
]
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
HttpClientTestingModule,
StoreModule.forRoot({}),
StoreModule.forFeature('cart', fromCart.getReducers()),
StoreModule.forFeature('user', fromUser.getReducers()),
StoreModule.forFeature('auth', fromAuth.getReducers()),
],
providers: [
OccCartService,
ProductImageNormalizer,
fromEffects.CartEffects,
{ provide: OccConfig, useValue: MockOccModuleConfig },
CartService,
CartDataService,
provideMockActions(() => actions$),
],
});
cartEffects = TestBed.get(fromEffects.CartEffects);
cartService = TestBed.get(OccCartService);
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ProductListModule,
StoreModule.forRoot({}),
StoreModule.forFeature('products', fromProduct.getReducers()),
StoreModule.forFeature('cart', fromCart.getReducers()),
StoreModule.forFeature('user', fromUser.getReducers())
],
providers: [ProductSearchService],
declarations: [ProductListPageLayoutComponent]
}).compileComponents();
}));
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import { appReducer } from './+state/app.reducer';
import { appInitialState } from './+state/app.init';
import { AppEffects } from './+state/app.effects';
@NgModule({
imports: [
CommonModule,
StoreModule.forFeature('app', appReducer, { initialState: appInitialState }),
EffectsModule.forFeature([AppEffects])
],
providers: [AppEffects]
})
export class ModelModule {}
children: [
{ path: '', pathMatch: 'full', redirectTo: 'all' },
{ path: ':category', component: CategoriesComponent }
]
}
];
@NgModule({
imports: [
CommonModule,
RouterModule.forChild(routes),
FlexLayoutModule,
MatGridListModule,
MatTabsModule,
StoreModule.forFeature('homePage', reducers),
EffectsModule.forFeature([ CategoriesEffects, ProductsEffects ])
],
declarations: [
CategoriesComponent,
ProductGridComponent,
SearchComponent
]
})
export class HomeModule {
}
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
StoreModule.forRoot({}),
StoreModule.forFeature(CHECKOUT_FEATURE, fromReducers.getReducers()),
],
});
store = TestBed.get(Store as Type>);
spyOn(store, 'dispatch').and.callThrough();
});
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
StoreModule.forRoot({}),
StoreModule.forFeature('cart', fromReducers.getReducers()),
StoreModule.forFeature(
PROCESS_FEATURE,
fromProcessReducers.getReducers()
),
],
providers: [
CartVoucherService,
{ provide: AuthService, useClass: AuthServiceStub },
],
});
service = TestBed.get(CartVoucherService as Type);
store = TestBed.get(Store as Type>);
store.dispatch(new DeprecatedCartActions.CreateCartSuccess(cart));
});
MaterialModule,
DynamicModule.withComponents([VmListCardItemComponent]),
DynamicModule.withComponents([VmListRowItemComponent]),
DraggableSelectModule,
ClipboardModule,
PulseModule,
MatExpansionModule,
RouterModule,
ServiceOfferingModule,
SnapshotModule,
TagsModule,
TemplateModule,
TranslateModule,
ResourceQuotasModule,
VmLogsModule,
StoreModule.forFeature('virtualMachines', virtualMachineReducers),
StoreModule.forFeature('accounts', accountReducers),
StoreModule.forFeature('tags', accountTagsReducers),
StoreModule.forFeature('zones', zoneReducers),
StoreModule.forFeature('service-offerings', serviceOfferingReducers),
EffectsModule.forFeature([
VirtualMachinesEffects,
VirtualMachineCreationEffects,
ZonesEffects,
AccountsEffects,
AccountTagsEffects,
ServiceOfferingEffects,
]),
],
declarations: [
AffinityGroupComponent,
AffinityGroupSelectorComponent,
import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import { reducers } from './reducers/index';
import { DaffCartEffects } from './effects/cart.effects';
@NgModule({
imports: [
StoreModule.forFeature('cart', reducers),
EffectsModule.forFeature([
DaffCartEffects
]),
]
})
export class DaffCartStateModule { }
import { RotationPickerDrawerComponent } from './rotation-picker-drawer/rotation-picker-drawer.component';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { FlexLayoutModule } from '@angular/flex-layout';
@NgModule({
imports: [
CommonModule,
CoreModule,
FormsModule,
TranslateModule,
NgZorroAntdModule,
RouterModule,
FlexLayoutModule,
StoreModule.forFeature('rotations', rotationsReducer, {
initialState: rotationsInitialState
}),
EffectsModule.forFeature([RotationsEffects])
],
declarations: [RotationPickerDrawerComponent],
entryComponents: [RotationPickerDrawerComponent],
providers: [RotationsFacade]
})
export class RotationsModule {
}