Options for constructing a MockPrefs instance.

interface IMockPrefsOptions {
    country?: string;
    lang?: string;
    moduleId?: string | number;
    prefs?: PrefValues;
}

Properties

country?: string

Value returned by getCountry(). Defaults to 'US'.

lang?: string

Value returned by getLang(). Defaults to 'en'.

moduleId?: string | number

Value returned by getModuleId(). Defaults to 0.

prefs?: PrefValues

Preference values to seed. Coerced to strings; arrays are joined with |.