Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/location/core/test/entity/address/ |
Upload File : |
import AddressField from "../../../src/entity/address/addressfield"; describe('AddressField', () => { it('Should be a function', () => { assert(typeof AddressField === 'function'); }); it('Should be constructed successfully', () => { let field = new AddressField({ type: 222, value: 'test value' }); assert.ok(field instanceof AddressField); assert.equal(field.type, 222); assert.equal(field.value, 'test value'); }); describe('get / set', () => { it('Should return setted values', () => { let field = new AddressField({ type: 222 }); field.value = 'test value'; assert.equal(field.value, 'test value'); }); }); });