Add test for whitespace control w/ partial indent

Verifies the behaviors discussed in #858
This commit is contained in:
kpdecker
2014-11-02 12:09:37 -06:00
parent f30b3ea329
commit 7c220b9af5
+3
View File
@@ -66,6 +66,9 @@ describe('whitespace control', function() {
shouldCompileToWithPartials('foo {{~> dude~}} ', [{}, {}, {dude: 'bar'}], true, 'foobar');
shouldCompileToWithPartials('foo {{> dude~}} ', [{}, {}, {dude: 'bar'}], true, 'foo bar');
shouldCompileToWithPartials('foo {{> dude}} ', [{}, {}, {dude: 'bar'}], true, 'foo bar ');
shouldCompileToWithPartials('foo\n {{~> dude}} ', [{}, {}, {dude: 'bar'}], true, 'foobar');
shouldCompileToWithPartials('foo\n {{> dude}} ', [{}, {}, {dude: 'bar'}], true, 'foo\n bar');
});
it('should only strip whitespace once', function() {