const decl = require('@bem/sdk.decl');
const BemCell = require('@bem/sdk.cell');
const BemEntityName = require('@bem/sdk.entity-name');
const scope = new BemCell({ entity: new BemEntityName({ block: 'foo' }), tech: null });
const content = {
elems: { elem: 'bar', mod: 'm', val: 'v' }
};
decl.normalize(content, { scope });
// got: [ BemCell { entity: { block: 'ugc' } },
// BemCell { entity: { block: 'ugc', elem: 'bar' } } ]
// want to: [ BemCell { entity: { block: 'ugc' } },
// BemCell { entity: { block: 'ugc', elem: 'bar', mod: 'm' } },
// BemCell { entity: { block: 'ugc', elem: 'bar', mod: 'm', val: 'v' } },
:(