Skip to content

Commit

Permalink
Merge pull request #12420 from duggiefresh/cleanup-beta-morph-range-e…
Browse files Browse the repository at this point in the history
…rror-message

[CLEANUP beta] `morph-range` - add error message test
  • Loading branch information
stefanpenner committed Oct 1, 2015
2 parents b471821 + dda8f3e commit db8721b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/ember-htmlbars/tests/helpers/view_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1340,3 +1340,16 @@ QUnit.test('should have the correct action target', function() {
EmberView.views['x-inner'].sendAction('dismiss');
});
});

QUnit.test('Throw an `Unsupported Content` error when attempting to bind to a function', () => {
view = EmberView.extend({
someFunction() {},
template: compile('{{view.someFunction}}')
}).create();

try {
runAppend(view);
} catch(error) {
equal(error.message, 'Unsupported Content: Cannot bind to function');
}
});

0 comments on commit db8721b

Please sign in to comment.