本文整理汇总了TypeScript中@angular-redux/store/testing.MockNgRedux类的典型用法代码示例。如果您正苦于以下问题:TypeScript MockNgRedux类的具体用法?TypeScript MockNgRedux怎么用?TypeScript MockNgRedux使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MockNgRedux类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: beforeEach
beforeEach(() => {
Cookie.delete('token');
authService = new MockAuthService();
mockRedux = MockNgRedux.getInstance();
errorActions = new ErrorHandlerActions(mockRedux);
actions = new UserActions(mockRedux, errorActions, authService);
});
示例2: beforeEach
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
NgReduxTestingModule,
],
declarations: [
AcceptOrderComponent
],
schemas: [ NO_ERRORS_SCHEMA ],
providers: [
{ provide: Http, useValue: {} },
{ provide: AcceptOrderService,
useValue: { apiOrdersPut: Observable.of('base data') }},
]
})
.compileComponents();
MockNgRedux.reset();
});
示例3: beforeEach
beforeEach(() => {
mockRedux = MockNgRedux.getInstance();
actions = new UserFormActions(mockRedux);
});
示例4: beforeEach
beforeEach(() => {
mockRedux = MockNgRedux.getInstance();
actions = new ErrorHandlerActions(mockRedux);
});