import {describe, it} from 'node:test'; import assert from 'node:assert/strict'; import { mapIcmsToMcfPositionLevel, mapMcfToIcmsPositionLevel, mapMcfToMsfPositionLevel, mapMsfToMcfPositionLevel, } from './positionLevels'; describe('mapIcmsToMcfPositionLevel', () => { it('should map to Senior Executive when id is 357009', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357009), {id: 8, position: 'Senior Executive'}); }); it('should map to Junior Executive when id is 357008', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357008), {id: 10, position: 'Junior Executive'}); }); it('should map to Non-executive when id is 357007', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357007), {id: 11, position: 'Non-executive'}); }); it('should map to Manager when id is 357003', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357003), {id: 3, position: 'Manager'}); }); it('should map to Executive when id is 357006', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357006), {id: 9, position: 'Executive'}); }); it('should map to Fresh/entry level when id is 357004', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357004), {id: 12, position: 'Fresh/entry level'}); }); it('should map to Professional when id is 357005', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357005), {id: 7, position: 'Professional'}); }); it('should map to Middle Management when id is 357002', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357002), {id: 2, position: 'Middle Management'}); }); it('should map to Senior Management when id is 357001', () => { assert.deepStrictEqual(mapIcmsToMcfPositionLevel(357001), {id: 1, position: 'Senior Management'}); }); }); describe('mapMcfToIcmsPositionLevel', () => { it('should map to Senior Executive when id is 8', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(8), {id: 357009, position: 'Senior Executive'}); }); it('should map to Junior Executive when id is 10', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(10), {id: 357008, position: 'Junior Executive'}); }); it('should map to Non-executive when id is 11', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(11), {id: 357007, position: 'Non-executive'}); }); it('should map to Manager when id is 3', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(3), {id: 357003, position: 'Manager'}); }); it('should map to Executive when id is 9', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(9), {id: 357006, position: 'Executive'}); }); it('should map to Fresh/entry level when id is 12', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(12), {id: 357004, position: 'Fresh/entry level'}); }); it('should map to Professional when id is 7', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(7), {id: 357005, position: 'Professional'}); }); it('should map to Middle Management when id is 2', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(2), {id: 357002, position: 'Middle Management'}); }); it('should map to Senior Management when id is 1', () => { assert.deepStrictEqual(mapMcfToIcmsPositionLevel(1), {id: 357001, position: 'Senior Management'}); }); }); describe('mapMsfToMcfPositionLevel', () => { it('should map to Senior Executive when id is 8', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(8), {id: 8, position: 'Senior Executive'}); }); it('should map to Junior Executive when id is 10', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(10), {id: 10, position: 'Junior Executive'}); }); it('should map to Non-executive when id is 11', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(11), {id: 11, position: 'Non-executive'}); }); it('should map to Manager when id is 3', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(3), {id: 3, position: 'Manager'}); }); it('should map to Executive when id is 9', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(9), {id: 9, position: 'Executive'}); }); it('should map to Fresh/entry level when id is 12', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(12), {id: 12, position: 'Fresh/entry level'}); }); it('should map to Professional when id is 7', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(7), {id: 7, position: 'Professional'}); }); it('should map to Middle Management when id is 2', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(2), {id: 2, position: 'Middle Management'}); }); it('should map to Senior Management when id is 1', () => { assert.deepStrictEqual(mapMsfToMcfPositionLevel(1), {id: 1, position: 'Senior Management'}); }); }); describe('mapMcfToMsfPositionLevel', () => { it('should map to Senior Executive when id is 8', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(8), {jobLevelCode: 8, description: 'Senior Executive'}); }); it('should map to Junior Executive when id is 10', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(10), {jobLevelCode: 10, description: 'Junior Executive'}); }); it('should map to Non-executive when id is 11', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(11), {jobLevelCode: 11, description: 'Non-executive'}); }); it('should map to Manager when id is 3', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(3), {jobLevelCode: 3, description: 'Manager'}); }); it('should map to Executive when id is 9', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(9), {jobLevelCode: 9, description: 'Executive'}); }); it('should map to Fresh / Entry level when id is 12', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(12), {jobLevelCode: 12, description: 'Fresh / Entry level'}); }); it('should map to Professional when id is 7', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(7), {jobLevelCode: 7, description: 'Professional'}); }); it('should map to Middle Management when id is 2', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(2), {jobLevelCode: 2, description: 'Middle Management'}); }); it('should map to Senior Management when id is 1', () => { assert.deepStrictEqual(mapMcfToMsfPositionLevel(1), {jobLevelCode: 1, description: 'Senior Management'}); }); });