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. });