Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 1 commit
  • 1 file changed
  • 0 comments
  • 1 contributor
Sep 29, 2012
Todd Wolfson Fuck this. The 'one character' output is lost in this implementation.…
… Going to re-port Crockford's c version
6a47492

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  tests/jsmin.test.js
12  tests/jsmin.test.js
@@ -6,13 +6,13 @@ var assert = require('assert'),
6 6
 	expectedJQueryMin1 = fs.readFileSync(__dirname + '/test_files/jquery.min.1.js', 'utf8'),
7 7
   expectedJQueryMin2 = fs.readFileSync(__dirname + '/test_files/jquery.min.2.js', 'utf8'),
8 8
   expectedJQueryMin3 = fs.readFileSync(__dirname + '/test_files/jquery.min.3.js', 'utf8'),
9  
-	actualJQueryMin1 = jsmin.jsmin(jquerySrc, 1),
10  
-	actualJQueryMin2 = jsmin.jsmin(jquerySrc, 2),
11  
-	actualJQueryMin3 = jsmin.jsmin(jquerySrc, 3);
  9
+	actualJQueryMin1 = jsmin.jsmin(jquerySrc, {level: 1}).code,
  10
+	actualJQueryMin2 = jsmin.jsmin(jquerySrc, {level: 2}).code,
  11
+	actualJQueryMin3 = jsmin.jsmin(jquerySrc, {level: 3}).code;
12 12
 
13  
-fs.writeFileSync(__dirname + '/test_files/jquery.min.1.js', actualJQueryMin1, 'utf8');
14  
-fs.writeFileSync(__dirname + '/test_files/jquery.min.2.js', actualJQueryMin2, 'utf8');
15  
-fs.writeFileSync(__dirname + '/test_files/jquery.min.3.js', actualJQueryMin3, 'utf8');
  13
+// fs.writeFileSync(__dirname + '/test_files/jquery.min.1.js', actualJQueryMin1, 'utf8');
  14
+// fs.writeFileSync(__dirname + '/test_files/jquery.min.2.js', actualJQueryMin2, 'utf8');
  15
+// fs.writeFileSync(__dirname + '/test_files/jquery.min.3.js', actualJQueryMin3, 'utf8');
16 16
 
17 17
 // Output to debug
18 18
 fs.writeFileSync(__dirname + '/jsmin.debug.js', actualJQueryMin1, 'utf8');

No commit comments for this range

Something went wrong with that request. Please try again.