我正在尝试将我的 ngrx/Store 声明到规范文件中以测试容器组件。所以我首先导入商店并在 beforeEach 中执行以下操作:
import {Store} from '@ngrx/store';
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [NotificationsComponent, NotificationsDevicesComponent,
ToArrayPipe, OrderByDate, TimezoneFormatPipe],
providers: [{ provide: Store, useClass: Store }]
})
.compileComponents().then(() => {
fixture = TestBed.createComponent(NotificationsComponent);
component = fixture.componentInstance;
el = fixture.debugElement;
fixture.detectChanges();
});
}));
但我从标题中得到错误,无法解析商店的所有参数:(?,?,?)。
有任何想法吗?
非常感谢