From: alexlamsl Date: Mon, 29 Feb 2016 08:13:31 +0000 (+0800) Subject: test for minify() should come first X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e4db6afabeb9617f42648a7ee6ced98dc01ad2cb;p=html-minifier.git test for minify() should come first --- diff --git a/tests/minifier.js b/tests/minifier.js index 073a708..3d32b35 100644 --- a/tests/minifier.js +++ b/tests/minifier.js @@ -7,6 +7,10 @@ input, output; + test('`minifiy` exists', function() { + ok(minify); + }); + test('parsing non-trivial markup', function() { equal(minify('

x

'), '

x

'); equal(minify('

x

'), '

x

'); @@ -92,10 +96,6 @@ }); }); - test('`minifiy` exists', function() { - ok(minify); - }); - test('options', function() { input = '

blahblah 2blah 3

'; equal(minify(input), input);