Skip to content
Browse files

failing test

  • Loading branch information...
1 parent de3ab86 commit 47995a82fdaa7e24eec06521bf9bfaaf34bcdeed @paularmstrong committed Dec 24, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 tests/tags.test.js
View
13 tests/tags.test.js
@@ -394,3 +394,16 @@ exports.filter = testCase({
test.done();
}
});
+
+exports.raw = testCase({
+ setUp: function (callback) {
+ swig.init({});
+ callback();
+ },
+
+ basic: function (test) {
+ var tpl = swig.compile('{% raw %}{{ foo }}{% if foo %}{{ foo }}{% endif %}{% endraw %}');
+ test.strictEqual(tpl({ foo: 'foo' }), 'foofoo');
+ test.done();
+ }
+});

0 comments on commit 47995a8

Please sign in to comment.
Something went wrong with that request. Please try again.