2023-03-04 22:38:38 +05:30
|
|
|
import { STATUS_ACKNOWLEDGED } from '~/sidebar/constants';
|
|
|
|
import { getStatusLabel } from '~/sidebar/utils';
|
2022-05-07 20:08:51 +05:30
|
|
|
|
|
|
|
describe('EscalationUtils', () => {
|
|
|
|
describe('getStatusLabel', () => {
|
|
|
|
it('returns a label when provided with a valid status', () => {
|
|
|
|
const label = getStatusLabel(STATUS_ACKNOWLEDGED);
|
|
|
|
|
|
|
|
expect(label).toEqual('Acknowledged');
|
|
|
|
});
|
|
|
|
|
|
|
|
it("returns 'None' when status is null", () => {
|
|
|
|
const label = getStatusLabel(null);
|
|
|
|
|
|
|
|
expect(label).toEqual('None');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|