UNPKG

trade360-nodejs-sdk

Version:
19 lines 840 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 default values', () => { const record = new id_and_name_record_1.IdNNameRecord(); expect(record).toBeInstanceOf(id_and_name_record_1.IdNNameRecord); expect(record.id).toBeUndefined(); expect(record.name).toBeUndefined(); }); it('should allow setting id and name properties', () => { const record = new id_and_name_record_1.IdNNameRecord(); record.id = 1; record.name = 'Test Name'; expect(record.id).toBe(1); expect(record.name).toBe('Test Name'); }); }); //# sourceMappingURL=id-and-name-record.spec.js.map