import {describe, it} from 'node:test'; import assert from 'node:assert/strict'; import {mapIcmsToMcfJobStatuses, mapMcfToIcmsJobStatuses} from './jobStatuses'; describe('mapIcmsToMcfJobStatuses', () => { it('should map to Closed when id is 9', () => { assert.deepStrictEqual(mapIcmsToMcfJobStatuses(9), {id: 1, status: 'Closed'}); }); it('should map to Draft when id is 83', () => { assert.deepStrictEqual(mapIcmsToMcfJobStatuses(83), {id: 2, status: 'Draft'}); }); it('should map to Open when id is 102', () => { assert.deepStrictEqual(mapIcmsToMcfJobStatuses(102), {id: 3, status: 'Open'}); }); it('should map to Re-open when id is 103', () => { assert.deepStrictEqual(mapIcmsToMcfJobStatuses(103), {id: 4, status: 'Re-open'}); }); }); describe('mapMcfToIcmsJobStatuses', () => { it('should map to Closed when id is 1', () => { assert.deepStrictEqual(mapMcfToIcmsJobStatuses(1), {id: 9, status: 'Closed'}); }); it('should map to Draft when id is 2', () => { assert.deepStrictEqual(mapMcfToIcmsJobStatuses(2), {id: 83, status: 'Draft'}); }); it('should map to Open when id is 3', () => { assert.deepStrictEqual(mapMcfToIcmsJobStatuses(3), {id: 102, status: 'Open'}); }); it('should map to Re-open when id is 4', () => { assert.deepStrictEqual(mapMcfToIcmsJobStatuses(4), {id: 103, status: 'Re-open'}); }); });