utils.spec.tsx 508 B

123456789101112131415
  1. import {getTabs} from './utils';
  2. describe('getTabs', () => {
  3. it('should enable/disable tabs for escalating-issues-ui', () => {
  4. expect(
  5. getTabs(TestStubs.Organization({features: ['escalating-issues-ui']})).map(
  6. tab => tab[1].name
  7. )
  8. ).toEqual(['Unresolved', 'For Review', 'New', 'Escalating', 'Ongoing', 'Archived']);
  9. expect(
  10. getTabs(TestStubs.Organization({features: []})).map(tab => tab[1].name)
  11. ).toEqual(['All Unresolved', 'For Review', 'Ignored']);
  12. });
  13. });