Skip to content

Commit

Permalink
Add test for whitespace control w/ partial indent
Browse files Browse the repository at this point in the history
Verifies the behaviors discussed in #858
  • Loading branch information
kpdecker committed Nov 2, 2014
1 parent f30b3ea commit 7c220b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/whitespace-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7c220b9

Please sign in to comment.