File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/js/location/core/test/entity/generic/field.test.js
Back
import Field from "../../../src/entity/generic/field"; describe('Field', () => { it('Should be a function', () => { assert(typeof Field === 'function'); }); it('Should be constructed successfully', () => { let field = new Field({ type: 222 }); assert.ok(field instanceof Field); assert.equal(field.type, 222); }); it('Should rise exception in case construction without the type', () => { assert.throws( () => { let field = new Field(); }, Error, 'Field type must be defined' ); }); });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings