diff --git a/test/conditionals.js b/test/conditionals.js index 7011ff10..dadd5dba 100644 --- a/test/conditionals.js +++ b/test/conditionals.js @@ -187,6 +187,11 @@ describe('Conditionals', function () { done() }) + it.skip('should evaluate one line if "if-somethingFalse" as false (conditionals/oneLineIfBooleanValue.html)', function (done) { + assert.equalIgnoreSpaces(teddy.render('conditionals/oneLineIfBooleanValue.html', model), '

') + done() + }) + it('should evaluate one line ifs in loops examining the object member\'s value correctly (conditionals/oneLineInLoop.html)', function (done) { assert.equalIgnoreSpaces(teddy.render('conditionals/oneLineInLoop.html', model), '

guy

girl

landscape

guy

girl

landscape

') done() diff --git a/test/templates/conditionals/oneLineIfBooleanValue.html b/test/templates/conditionals/oneLineIfBooleanValue.html new file mode 100644 index 00000000..1e866c99 --- /dev/null +++ b/test/templates/conditionals/oneLineIfBooleanValue.html @@ -0,0 +1,5 @@ +{! + should evaluate one line if as false when value being checked is false +!} + +