import { Injectable } from '@angular/core' ; @ Injectable ( ) export class StorageServiceMock { store = { } ; constructor ( ) { } public set ( key , item ) { this . store [ key ] = item ; } public get ( key ) { return this . store [ key ] || '{}' ; } public clear ( ) { this . store = { } ; } }