Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MockStorageService

A StorageService suitable to use during tests.

Hierarchy

  • MockStorageService

Implements

Index

Constructors

Properties

data: Map<string, undefined | {}> = ...
onSetDataCallback?: ((key: string, data?: any) => void)

Type declaration

    • (key: string, data?: any): void
    • Parameters

      • key: string
      • Optional data: any

      Returns void

Methods

  • getData<T>(key: string, defaultValue?: T): Promise<undefined | T>
  • onSetData(callback: ((key: string, data?: any) => void)): void
  • setData<T>(key: string, data?: T): Promise<void>