import { TestBed } from "@angular/core/testing" ; import { LastSyncDateTimeDao } from "./last-sync-date-time.dao" ; import { MockedDataStore } from "../../data-store/impl/spec/mocked-data-store.service" ; import { DataStore } from "../../data-store/data-store" ; describe ( "LastSyncDateTimeDao" , ( ) => { let lastSyncDateTimeDao = null ; beforeEach ( ( done ) => { const lastSyncTime = Date . now ( ) ; const mockedDataStore = new MockedDataStore ( lastSyncTime ) ; TestBed . configureTestingModule ( { providers : [ LastSyncDateTimeDao , { provide : DataStore , useValue : mockedDataStore } ] } ) ; lastSyncDateTimeDao = TestBed . get ( LastSyncDateTimeDao ) ; done ( ) ; } ) ; it ( "should be created" , ( done ) => { expect ( lastSyncDateTimeDao ) . toBeTruthy ( ) ; done ( ) ; } ) ; } ) ;