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