bem / bem-xjst

bem-xjst (eXtensible JavaScript Templates): declarative template engine for the browser and server
https://bem.github.io/bem-xjst
Other
116 stars 48 forks source link

test is controversial #291

Closed Yeti-or closed 8 years ago

Yeti-or commented 8 years ago

https://github.com/bem/bem-xjst/blob/a67900859a928aae53a869cbebca72ba3177b5a3/test/runtime-escaping-test.js#L42 test description and it's content are contradictory

miripiruni commented 8 years ago

@Yeti-or you right, I’ll rewrite test description. See https://github.com/bem/bem-xjst/blob/master/lib/bemxjst/index.js#L279-L286

Yeti-or commented 8 years ago

maybe we need two test case here:

  1. { block: 'b', html: '<unescaped>', content: 'safe text' }
  2. { html: '<unescaped>', content: 'safe text' }