styled-components
Version:
Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
14 lines (11 loc) • 463 B
JavaScript
// @flow
import generateAlphabeticName from '../generateAlphabeticName';
describe('generateAlphabeticName', () => {
it('should create alphabetic names for number input data', () => {
expect(generateAlphabeticName(1000000000)).toEqual('cGNYzm');
expect(generateAlphabeticName(2000000000)).toEqual('fnBWYy');
});
it('should not fail for numbers above int32 limit', () => {
expect(generateAlphabeticName(3819806601)).toEqual('kcwstn');
});
});