utils.spec.tsx 760 B

1234567891011121314151617181920
  1. import {getTabs} from './utils';
  2. describe('getTabs', () => {
  3. it('displays the correct list of tabs', () => {
  4. expect(getTabs().filter(tab => !tab[1].hidden)).toEqual([
  5. [
  6. 'is:unresolved issue.priority:[high, medium]',
  7. expect.objectContaining({name: 'Prioritized'}),
  8. ],
  9. [
  10. 'is:unresolved is:for_review assigned_or_suggested:[me, my_teams, none]',
  11. expect.objectContaining({name: 'For Review'}),
  12. ],
  13. ['is:regressed', expect.objectContaining({name: 'Regressed'})],
  14. ['is:escalating', expect.objectContaining({name: 'Escalating'})],
  15. ['is:archived', expect.objectContaining({name: 'Archived'})],
  16. ['is:reprocessing', expect.objectContaining({name: 'Reprocessing'})],
  17. ]);
  18. });
  19. });