Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "testing/helpers.spec"

Index

Functions

Const getArrayStartAfterByDocument

  • getArrayStartAfterByDocument(array: Array<any>, doc: any): Array<any>

Const getArrayStartByNumberField

  • getArrayStartByNumberField(array: Array<any>, fieldPath: string, startValue: number): Array<any>
  • get array start by number field path

    Parameters

    • array: Array<any>
    • fieldPath: string
    • startValue: number

    Returns Array<any>

Const getArrayWhereByField

  • getArrayWhereByField(array: Array<any>, fieldPath: string, nopStr: string, value: any): Array<any>
  • get filtered array by field and value

    Parameters

    • array: Array<any>
    • fieldPath: string
    • nopStr: string
    • value: any

    Returns Array<any>

Const getDataByPath

  • getDataByPath(testData: any, path: string): Array<any>
  • get data from json test data by field path

    Parameters

    • testData: any
    • path: string

    Returns Array<any>

Const getFirestoreQuerySnap

  • getFirestoreQuerySnap(tData: Array<any>): any

Const getFirestoreSnap

  • getFirestoreSnap(tData: Array<any>): Array<any>

Const getFirestoreSnapByPath

  • getFirestoreSnapByPath(testData: any, path: string): Array<any>
  • get snap of data from json test data by field path

    Parameters

    • testData: any
    • path: string

    Returns Array<any>

Const getRandomKey

  • getRandomKey(length?: number): string

Const getSortedArrayByNumberKey

  • getSortedArrayByNumberKey(array: Array<any>, key: string): Array<any>

Const getStorageFiles

  • getStorageFiles(tData: Array<string>): Array<any>

Const sleep

  • sleep(ms: number): Promise<void>

Const sleepToGetData

  • sleepToGetData(res: any): Promise<void>

Generated using TypeDoc