mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
JS is minified if its average line length is greater than 100c
Fixes #27
This commit is contained in:
@@ -123,6 +123,12 @@ class TestBlob < Test::Unit::TestCase
|
||||
assert blob("MainMenu.nib").generated?
|
||||
assert blob("project.pbxproj").generated?
|
||||
|
||||
# Long line
|
||||
assert !blob("uglify.js").generated?
|
||||
|
||||
# Inlined JS, but mostly code
|
||||
assert !blob("json2_backbone.js").generated?
|
||||
|
||||
# Minified JS
|
||||
assert !blob("jquery-1.6.1.js").generated?
|
||||
assert blob("jquery-1.6.1.min.js").generated?
|
||||
|
||||
Reference in New Issue
Block a user