mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Let make take other falsy values for content.
This commit is contained in:
@@ -33,9 +33,12 @@ $(document).ready(function() {
|
||||
equal($(div).text(), 'one two three');
|
||||
});
|
||||
|
||||
test("View: make can take an argument of 0", function() {
|
||||
test("View: make can take falsy values for content", function() {
|
||||
var div = view.make('div', {id: 'test-div'}, 0);
|
||||
equal($(div).text(), '0');
|
||||
|
||||
var div = view.make('div', {id: 'test-div'}, '');
|
||||
equal($(div).text(), '');
|
||||
});
|
||||
|
||||
test("View: initialize", function() {
|
||||
|
||||
Reference in New Issue
Block a user