UNPKG

trade360-nodejs-sdk

Version:

LSports Trade360 SDK for Node.js

18 lines 994 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const danger_indicator_status_1 = require("../../../../src/entities/core-entities/enums/danger-indicator-status"); describe('DangerIndicatorStatus Enum', () => { it('should map names to values correctly', () => { expect(danger_indicator_status_1.DangerIndicatorStatus.Safe).toBe(1); expect(danger_indicator_status_1.DangerIndicatorStatus.Danger).toBe(2); }); it('should map values to names correctly (reverse mapping)', () => { expect(danger_indicator_status_1.DangerIndicatorStatus[1]).toBe('Safe'); expect(danger_indicator_status_1.DangerIndicatorStatus[2]).toBe('Danger'); }); it('should contain all expected enum keys', () => { const keys = Object.keys(danger_indicator_status_1.DangerIndicatorStatus).filter((k) => isNaN(Number(k))); expect(keys).toEqual(['Safe', 'Danger']); }); }); //# sourceMappingURL=danger-indicator-status.spec.js.map