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 raise an error when call `.name()` with invalid argument', () => {
// $ExpectError: first argument must be a string
fbt.name(1, IntlVariations.GENDER_FEMALE);
// $ExpectError: `BITMASK_GENDER` is missing in enum
fbt.name('test', IntlVariations.BITMASK_GENDER);
});
});
it('should pass when used properly', () => {
fbt.name('test', IntlVariations.GENDER_FEMALE);
});