UNPKG

trade360-nodejs-sdk

Version:

LSports Trade360 SDK for Node.js

13 lines 642 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const id_and_name_record_1 = require("../../../../src/entities/core-entities/common/id-and-name-record"); describe('IdNNameRecord', () => { it('should instantiate with id and name', () => { const record = new id_and_name_record_1.IdNNameRecord(1, 'Test Name'); expect(record).toBeInstanceOf(id_and_name_record_1.IdNNameRecord); // Accessing protected properties via casting for test purposes expect(record.id).toBe(1); expect(record.name).toBe('Test Name'); }); }); //# sourceMappingURL=id-and-name-record.spec.js.map