lundi 8 mai 2017

Cannot find name 'provide'

When i use the Mock to test the Angular,why 'provide' cannot be find.

 beforeEach(() => {

    TestBed.configureTestingModule({
      providers : [
      provide(StrategyTablesService,{useClass:MockstrategyService})
        ]
    });
  });

Aucun commentaire:

Enregistrer un commentaire