From 2d9dd1c17270d8300b909fcb2f36964662000acf Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 31 Mar 2011 01:20:20 -0700 Subject: add specs for jqLite wrapping/node creation tests cover: - creating comment tags from a string - creating script tag from a string - wrapping document fragment --- test/jqLiteSpec.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test') diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index e566b1fe..8efead0a 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -41,12 +41,31 @@ describe('jqLite', function(){ expect(selected.length).toEqual(1); expect(selected[0]).toEqual(text); }); + it('should allow construction with html', function(){ var nodes = jqLite('