querySymbol.spec.tsx 583 B

12345678910111213141516
  1. import {getQuerySymbol} from 'sentry/views/ddm/querySymbol';
  2. describe('getQuerySymbol', () => {
  3. it('should return the correct symbol', () => {
  4. expect(getQuerySymbol(0)).toBe('a');
  5. expect(getQuerySymbol(1)).toBe('b');
  6. expect(getQuerySymbol(25)).toBe('z');
  7. expect(getQuerySymbol(26)).toBe('aa');
  8. expect(getQuerySymbol(27)).toBe('ab');
  9. expect(getQuerySymbol(52)).toBe('ba');
  10. expect(getQuerySymbol(53)).toBe('bb');
  11. expect(getQuerySymbol(77)).toBe('bz');
  12. expect(getQuerySymbol(78)).toBe('ca');
  13. expect(getQuerySymbol(702)).toBe('aaa');
  14. });
  15. });