UNPKG

trade360-nodejs-sdk

Version:

LSports Trade360 SDK for Node.js

18 lines 942 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const active_participant_1 = require("../../../../src/entities/core-entities/enums/active-participant"); describe('ActiveParticipant Enum', () => { it('should map names to values correctly', () => { expect(active_participant_1.ActiveParticipant.InActive).toBe(0); expect(active_participant_1.ActiveParticipant.Active).toBe(1); }); it('should map values to names correctly (reverse mapping)', () => { expect(active_participant_1.ActiveParticipant[0]).toBe('InActive'); expect(active_participant_1.ActiveParticipant[1]).toBe('Active'); }); it('should contain all expected enum keys', () => { const keys = Object.keys(active_participant_1.ActiveParticipant).filter((k) => isNaN(Number(k))); expect(keys).toEqual(['InActive', 'Active']); }); }); //# sourceMappingURL=active-participant.spec.js.map