-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
processBemJson()
should return standart BEMJSON
#96
Conversation
content: { | ||
block: 'button', | ||
elem: 'inner', | ||
mods: { valid: true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be elemMods
instead of mods
? (As in BEMHTML)
So what? |
@isquariel наконец-то руки дошли :) Можешь проверить у себя? |
var BH = require('../lib/bh'); | ||
require('chai').should(); | ||
|
||
// Standart: http://ru.bem.info/technology/bemjson/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
standarD
@an9eldust глянь, пожалуйста |
@mishanga Маловато спеков, имхо. Надо пробовать запускать и с |
@zxqfox про спеки не понял. |
}).should.deep.equal({ | ||
block: 'button', | ||
mods: {} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Может быть здесь пару тестов с match сделать и с прокидыванием данных внутрь?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем? Это ж юнит-тесты.
match сам по себе не модифицирует контекст, а в шаблонах можно воровать-убивать.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Разве match не запускается на processBemJson
? Но вообще, наверное, не стоит, ведь мы их отдельно оттестировали.
@mishanga, я не увидел проблем, но надо сказать, что в этом коде я ориентируюсь не очень. Зато могу сообщить, что собрал наш проект с |
@an9eldust ну это главное, что собралось и работает :) Я старался не ломать ничего. |
`processBemJson()` should return standart BEMJSON
- Added global matcher support: `beforeEach` and `afterEach` (bem/bh#121). - Added `ctx.process` method (bem/bh#135). - Add `i-bem` class to element with `js` (bem/bh#122). - No-base modifier classes supported (bem/bh#132). - `processBemJson` now return standart BEMJSON (bem/bh#96). Changelog bem/bh@ee446ea
- Added global matcher support: `beforeEach` and `afterEach` (bem/bh#121). - Added `ctx.process` method (bem/bh#135). - Add `i-bem` class to element with `js` (bem/bh#122). - No-base modifier classes supported (bem/bh#132). - `processBemJson` now return standart BEMJSON (bem/bh#96). Changelog bem/bh@ee446ea
- Added global matcher support: `beforeEach` and `afterEach` (bem/bh#121). - Added `ctx.process` method (bem/bh#135). - Add `i-bem` class to element with `js` (bem/bh#122). - No-base modifier classes supported (bem/bh#132). - `processBemJson` now return standart BEMJSON (bem/bh#96). Changelog bem/bh@ee446ea
- Added global matcher support: `beforeEach` and `afterEach` (bem/bh#121). - Added `ctx.process` method (bem/bh#135). - Add `i-bem` class to element with `js` (bem/bh#122). - No-base modifier classes supported (bem/bh#132). - `processBemJson` now return standart BEMJSON (bem/bh#96). Changelog bem/bh@ee446ea
No description provided.