Skip to content

Commit 2cacbed

Browse files
authored
fix: make fallback case explicit in unit tests (#296)
1 parent e3610a7 commit 2cacbed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/helpers/block.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ describe('partial and block helpers', function () {
2323
});
2424
});
2525

26-
it('should not trigger an error if partial name is empty', function (done) {
26+
it('should not trigger an error if partial name is empty, fallback case used instead', function (done) {
2727
var templates = {
28-
template: '{{#partial}}World{{/partial}}{{> layout}}',
29-
layout: 'Hello{{#block "page"}}{{/block}}',
28+
template: '{{#partial }}World{{/partial}}{{> layout}}',
29+
layout: 'Hello{{#block "page"}} Brave New World{{/block}}',
3030
};
3131

3232
render('template', {}, {}, {}, templates).then(result => {
33-
expect(result).to.be.equal('Hello');
33+
expect(result).to.be.equal('Hello Brave New World');
3434
done();
3535
});
3636
});

0 commit comments

Comments
 (0)