Skip to content

Commit

Permalink
Fixed filter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 5, 2010
1 parent 94a1efe commit db218fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/filters.test.js
Expand Up @@ -27,9 +27,8 @@ Visitor.prototype.visitTag = function(node){
switch (node.name) {
case 'if':
// First text -> line
var condition = node.block[0][0],
var condition = node.text[0],
block = node.block;
block.shift();
node = new nodes.Code('if (' + condition + ')');
node.block = block;
this.visit(node);
Expand Down

0 comments on commit db218fd

Please sign in to comment.