@kilterset/auth0-actions-testing
Version:
Test and develop Auth0 Actions or Okta CIC Actions locally.
23 lines (18 loc) • 498 B
text/typescript
import Chance from "chance";
import { asn } from "./asn";
import { auth0 } from "./auth0";
import { tzIdentifier } from "./tz-identifier";
import { oAuth } from "./oauth";
import { useragent } from "./useragent";
const chance = new Chance();
const mixins: Record<string, (instance: typeof chance) => unknown> = {
asn,
auth0,
tzIdentifier,
oAuth,
useragent,
};
for (const [name, mixin] of Object.entries(mixins)) {
chance.mixin({ [name]: () => mixin(chance) });
}
export { chance };