export class SessionStorageMock { private store : Record < string , unknown > = { } ; public clear ( ) { this . store = { } ; } public getItem ( key ) { return this . store [ key ] || null ; } public setItem ( key , value ) { this . store [ key ] = value . toString ( ) ; } public removeItem ( key ) { delete this . store [ key ] ; } }