File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/js/location/core/test/entity/format/formatfieldcollection.test.js
Back
import FormatFieldCollection from "../../../src/entity/format/formatfieldcollection"; import FormatField from "../../../src/entity/format/formatfield"; describe('FormatFieldCollection', () => { it('Should be a function', () => { assert(typeof FormatFieldCollection === 'function'); }); it('Should be constructed successfully', () => { let fields = new FormatFieldCollection(); assert.ok(fields instanceof FormatFieldCollection); fields = new FormatFieldCollection({ fields: [ new FormatField({type: 222, name: 'test field'}) ] }); assert.ok(fields instanceof FormatFieldCollection); assert.equal(fields.getField(222).name, 'test field') }); });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings