diff options
Diffstat (limited to 'test/jqLiteSpec.js')
| -rw-r--r-- | test/jqLiteSpec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index 2fc670ce..e566b1fe 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -299,6 +299,11 @@ describe('jqLite', function(){ expect(root.append('text')).toEqual(root); expect(root.html()).toEqual('text'); }); + it('should not append anything if parent node is not of type element', function() { + var root = jqLite(document.createDocumentFragment()); + expect(root.append('<p>foo</p>')).toBe(root); + expect(root.children().length).toBe(0); + }); }); describe('remove', function(){ it('should remove', function(){ |
