From fd87eb0ca5e14f213d8b31280d444dbc29c20c50 Mon Sep 17 00:00:00 2001 From: Joao Sa Date: Fri, 28 Jun 2013 00:53:17 -0300 Subject: fix(jqLite): prepend array in correct order Match jQuery behavior when prepending array into empty element --- test/jqLiteSpec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/jqLiteSpec.js') diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index f6630536..92ccc2a8 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -1075,6 +1075,18 @@ describe('jqLite', function() { expect(root.prepend('abc')).toEqual(root); expect(root.html().toLowerCase()).toEqual('abctext'); }); + it('should prepend array to empty in the right order', function() { + var root = jqLite('