Skip to content

Commit

Permalink
Also verify that exception doesn't get thrown again (that the item is…
Browse files Browse the repository at this point in the history
…n't processed again).
  • Loading branch information
mbest committed May 25, 2015
1 parent f1083c0 commit bc0ce96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/defaultBindings/foreachBehaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ describe('Binding: Foreach', function() {
ko.applyBindings({someItems: someItems, callback, callback });
expect(testNode.childNodes[0]).toContainText('ABC');

try { someItems.push('D'); } catch(e) {}
expect(function() { someItems.push('D'); }).toThrow("Exception");
expect(testNode.childNodes[0]).toContainText('ABCD');

try { someItems.push('E'); } catch(e) {}
expect(function() { someItems.push('E'); }).not.toThrow();
expect(testNode.childNodes[0]).toContainText('ABCDE');
});

Expand Down

0 comments on commit bc0ce96

Please sign in to comment.