Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions spec/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,21 @@ describe('basic context', function() {
})
.withMessage('functions are bound to the context')
.toCompileTo('More awesome');

expectTemplate('{{nested.awesome}}')
.withInput({
nested: {
awesome: function() {
return this.more;
},
more: 'Deeply awesome'
},
more: 'More awesome'
})
.withMessage(
'functions in nested objects are bound to that object, consistent with JS spec'
)
.toCompileTo('Deeply awesome');
});

it('functions with context argument', function() {
Expand Down