-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Error: StaticInjectorError(DynamicTestModule)[MyApp -> Storage]:
StaticInjectorError(Platform: core)[MyApp -> Storage]:
NullInjectorError: No provider for Storage!
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [MyApp],
imports: [
IonicModule.forRoot(MyApp)
],
providers: [
{ provide: StatusBar, useFactory: () => StatusBarMock.instance() },
{ provide: SplashScreen, useFactory: () => SplashScreenMock.instance() },
{ provide: Platform, useFactory: () => PlatformMock.instance() },
{ provide: Storage, useFactory: () => StorageMock.instance('introMostrada', false) },
{ provide: HeaderColor, useClass: HeaderColorMock }
]
})
}));
"ionic-mocks": "^1.3.0"
Any ideias?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels