Closed blond closed 7 years ago
Meta task: https://github.com/bem-sdk/bem-sdk/issues/15
const BemCell = require('@bem/cell'); const cell = new BemCell({ entity: { block: 'button', elem: 'text' }, tech: 'css', layer: 'common' }); cell.entity // ➜ BemEntityName { block: 'button', elem: 'text' } cell.tech // css cell.layer // common
Requirements:
BemEntityName
entity
Need to add tests (use AVA).
Fixed in # https://github.com/bem-sdk/bem-cell/pull/6
Meta task: https://github.com/bem-sdk/bem-sdk/issues/15
Requirements:
BemEntityName
.entity
field should return instance ofBemEntityName
.Need to add tests (use AVA).