Skip to content
This repository has been archived by the owner on Feb 4, 2018. It is now read-only.

should throw if modifier is not valid #59

Closed
blond opened this issue Nov 25, 2016 · 0 comments
Closed

should throw if modifier is not valid #59

blond opened this issue Nov 25, 2016 · 0 comments
Assignees
Labels

Comments

@blond
Copy link
Member

blond commented Nov 25, 2016

Actual

new BemEntityName({
    block: 'button',
    mod: { val: 'action' }
});

// ➜ BemEntityName { block: 'button' }

new BemEntityName({
    block: 'button',
    mod: {}
});

// ➜ BemEntityName { block: 'button' }

Expected

new BemEntityName({
    block: 'button',
    mod: { val: 'action' }
});

// ➜ This is not valid BEM entity: the field `mod.name` is undefined.

new BemEntityName({
    block: 'button',
    mod: {}
});

// ➜ This is not valid BEM entity: the field `mod.name` is undefined.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant