Add tests for bem-xjst4 compatibility flags
vkz opened this issue · 1 comments
vkz commented
-
assertHasBlock
assert that every template has sub-predicate matchingblock
-
assertNoThisElem
assert there're no predicates matchingthis.elem
bem/bem-xjst#89 -
applySetsMode
assert that everyapply
sets the mode as its first argument bem/bem-xjst#91 -
applyCheckFields
warn whenapply
assignsblock
,elem
,mods
,elemMods
bem/bem-xjst#73 -
returnFromDef
ensure there's alwaysreturn
indef
mode. Insertreturn ''
when there is none -
assertNoBuf
assertthis._buf
is never used in templates
vkz commented
applySetsMode
and applyCheckFields
are just checks that only warn
, never assert
. Both work but I'm not adding them to test-suite explicitly (for now).