UNPKG

trade360-nodejs-sdk

Version:

LSports Trade360 SDK for Node.js

22 lines 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const outright_score_status_1 = require("../../../../src/entities/core-entities/enums/outright-score-status"); describe('OutrightScoreStatus Enum', () => { it('should map names to values correctly', () => { expect(outright_score_status_1.OutrightScoreStatus.Unknown).toBe(0); expect(outright_score_status_1.OutrightScoreStatus.Pending).toBe(1); expect(outright_score_status_1.OutrightScoreStatus.InProgress).toBe(2); expect(outright_score_status_1.OutrightScoreStatus.Completed).toBe(3); }); it('should map values to names correctly (reverse mapping)', () => { expect(outright_score_status_1.OutrightScoreStatus[0]).toBe('Unknown'); expect(outright_score_status_1.OutrightScoreStatus[1]).toBe('Pending'); expect(outright_score_status_1.OutrightScoreStatus[2]).toBe('InProgress'); expect(outright_score_status_1.OutrightScoreStatus[3]).toBe('Completed'); }); it('should contain all expected enum keys', () => { const keys = Object.keys(outright_score_status_1.OutrightScoreStatus).filter((k) => isNaN(Number(k))); expect(keys).toEqual(['Unknown', 'Pending', 'InProgress', 'Completed']); }); }); //# sourceMappingURL=outright-score-status.spec.js.map