Test more falsey values
Matthew Dapena-Tretter committed
Apr 3, 2014 at 22:20 UTC
1c63a3a7f4c2f6be9b10ac870211032eea6ded1e
1 file changed
+15
src/browser/ui/dom/__tests__/DOMPropertyOperations-test.js
+15
@@ -124,6 +124,21 @@ describe('DOMPropertyOperations', function() {
124
'download',
125
'false'
126
)).toBe('download="false"');
127
+
128
+ expect(DOMPropertyOperations.createMarkupForProperty(
129
+ 'download',
130
+ undefined
131
+ )).toBe('');
132
+
133
+ expect(DOMPropertyOperations.createMarkupForProperty(
134
+ 'download',
135
+ null
136
+ )).toBe('');
137
+
138
+ expect(DOMPropertyOperations.createMarkupForProperty(
139
+ 'download',
140
+ 0
141
+ )).toBe('download="0"');
142
});
143
144
it('should create markup for custom attributes', function() {