Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/api-helper/goal/mock"

Index

Functions

createGoalExecutor

  • createGoalExecutor(seconds: number, code?: number): ExecuteGoal

getSize

mockGoalExecutor

randomize

  • randomize(size: MockGoalSize | number, randomBy: number): number

wait

  • wait(seconds: number): Promise<void>

Object literals

Const DefaultMockOptions

DefaultMockOptions: object

Default mock options to be merged into custom options provided on configuration.sdm.mock

defaultSize

defaultSize: MockGoalSize = MockGoalSize.Medium

enabled

enabled: false = false

goals

goals: undefined[] = []

randomBy

randomBy: number = 0.2

Generated using TypeDoc