Skip to content

Commit

Permalink
Fix white-space issue from earlier commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mbest committed Nov 27, 2017
1 parent 9f7afe8 commit e4ecf89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/nativeTemplateEngineBehaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ describe('Native template engine', function() {

it('with no content should be rejected', function () {
testNode.innerHTML = "<div data-bind='template: { data: someItem }'></div>"

var viewModel = {
someItem: { val: 'abc' }
};
expect(function () {
ko.applyBindings(viewModel, testNode);
}).toThrowContaining("no template content");
});

it('work in conjunction with foreach', function() {
testNode.innerHTML = "<div data-bind='template: { foreach: myItems }'><b>Item: <span data-bind='text: itemProp'></span></b></div>";
var myItems = ko.observableArray([{ itemProp: 'Alpha' }, { itemProp: 'Beta' }, { itemProp: 'Gamma' }]);
Expand Down

0 comments on commit e4ecf89

Please sign in to comment.