UNPKG

@kilterset/auth0-actions-testing

Version:

Test and develop Auth0 Actions or Okta CIC Actions locally.

10 lines (8 loc) 255 B
export function rulesMock(flow: string, { executedRules = [] }: { executedRules?: string[] } = {}) { const build = <T>(api: T) => ({ wasExecuted: (ruleId: string) => { return executedRules.includes(ruleId); }, }); return { build }; }