Created
May 22, 2013 22:53
-
-
Save eastridge/5631587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Colin working on issue #159 | |
it('should render div tag even if div tag is the last element before the closing collection helper', function(){ | |
var dummyCollection = new Thorax.Collection([{key: 'value'}]) | |
var view = new Thorax.View({ | |
dummyCollection: dummyCollection, | |
template: Handlebars.compile('{{#collection dummyCollection}}<div> </div>{{/collection}}') | |
expect(view.$('div').length).to.equal('1') // or get an array of the html and to.not.be.empty on it, maybe, or convert the innerHTML to a string and check if it contains the '/' character - would try these strategies next to try to get false | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment