import { TestBed } from '@angular/core/testing' ; import { StorageMock } from 'test-config/storage-mock' ; import { SecureStorageService } from '../secure-storage/secure-storage.service' ; import { VaultStorageService } from '../storage/storage.service' ; import { UnitHelper } from './../../../../test-config/unit-test-helper' ; import { SecureStorageServiceMock } from './../secure-storage/secure-storage.mock' ; import { SecretsService } from './secrets.service' ; describe ( 'SecretsService' , ( ) => { let unitHelper ; beforeEach ( ( ) => { unitHelper = new UnitHelper ( ) ; TestBed . configureTestingModule ( unitHelper . testBed ( { providers : [ SecretsService , { provide : VaultStorageService , useClass : StorageMock } , { provide : SecureStorageService , useClass : SecureStorageServiceMock } ] } ) ) . compileComponents ( ) . catch ( console . error ) ; } ) ; it ( 'should be created' , ( ) => { const secretsService = TestBed . get ( SecretsService ) ; expect ( secretsService ) . toBeTruthy ( ) ; } ) ; it ( 'should save a newly added secret to the local storage' , async ( ) => { } ) ; } ) ;