aboutsummaryrefslogtreecommitdiffstats
path: root/test/jqLiteSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/jqLiteSpec.js')
-rw-r--r--test/jqLiteSpec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js
index fafe7f2a..2c05a7e5 100644
--- a/test/jqLiteSpec.js
+++ b/test/jqLiteSpec.js
@@ -162,6 +162,10 @@ describe('jqLite', function(){
expect(select.attr('multiple')).toEqual(true);
});
+ it('should return undefined for non-existing attributes', function() {
+ var elm = jqLite('<div class="any">a</div>');
+ expect(elm.attr('non-existing')).toBeUndefined();
+ });
});