Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should pass when used properly', () => {
fbt.param('age', 18);
fbt.param('age', 18, {});
fbt.param('age', 18, { number: true });
fbt.param('age', 18, { number: 1 });
fbt.param('age', 18, { gender: IntlVariations.GENDER_UNKNOWN });
fbt.param('age', 18, { gender: IntlVariations.GENDER_FEMALE });
});
it('should mutate GENDER property', () => {
IntlViewerContext.GENDER = IntlVariations.GENDER_FEMALE;
});
className="neatoSelect"
onChange={(event: SyntheticUIEvent<>) => {
const vcGender = parseInt(event.target.value, 10);
IntlViewerContext.GENDER = vcGender;
this.forceUpdate();
}}>
<option value="{IntlVariations.GENDER_UNKNOWN}">
Your Gender:
</option>
<option value="{IntlVariations.GENDER_UNKNOWN}">
Unknown
</option>
<option value="{IntlVariations.GENDER_MALE}">
Male
</option>
<option value="{IntlVariations.GENDER_FEMALE}">
Female
</option>
<fieldset>
<span>
<span>
<input placeholder="{fbt('name',">) => {
this.setState({ex1Name: event.target.value});</span></span></fieldset>
<form method="get" action="">
<fieldset>
<span>
<span>
<select>) => {
const vcGender = parseInt(event.target.value, 10);
IntlViewerContext.GENDER = vcGender;
this.forceUpdate();
}}>
<option value="{IntlVariations.GENDER_UNKNOWN}">
Your Gender:
</option>
<option value="{IntlVariations.GENDER_MALE}">Female</option>
<option value="{IntlVariations.GENDER_FEMALE}">Male</option>
<option value="{IntlVariations.GENDER_UNKNOWN}">
Unknown
</option>
</select>
</span>
</span>
</fieldset>
<fieldset>
<span>
<span>
<input placeholder="name">) => {</span></span></fieldset></form>