import { TestBed } from "@angular/core/testing" ; import { AthleteDao } from "./athlete-dao.service" ; import { MockedDataStore } from "../../data-store/impl/spec/mocked-data-store.service" ; import { SyncedActivityModel } from "@elevate/shared/models" ; import { DataStore } from "../../data-store/data-store" ; describe ( "AthleteDao" , ( ) => { let athleteDao ; beforeEach ( ( done ) => { const mockedDataStore = new MockedDataStore ( [ ] ) ; TestBed . configureTestingModule ( { providers : [ AthleteDao , { provide : DataStore , useValue : mockedDataStore } ] } ) ; athleteDao = TestBed . get ( AthleteDao ) ; done ( ) ; } ) ; it ( "should be created" , ( done ) => { expect ( athleteDao ) . toBeTruthy ( ) ; done ( ) ; } ) ; } ) ;