Skip to content

Commit ce2fcdd

Browse files
committed
compressor implementation unit tests: set DISABLE_WRAPPER = True
1 parent 8b30436 commit ce2fcdd

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

tests/assets/compressors/closure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(function(){(function(){window.concat=function(){console.log(arguments)}})();(function(){window.cat=function(){console.log("hello world")}})()}).call(this);
1+
(function(){window.concat=function(){console.log(arguments)}})();(function(){window.cat=function(){console.log("hello world")}})();

tests/assets/compressors/jsmin.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/assets/compressors/slimit.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/assets/compressors/uglifyjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(function(){(function(){window.concat=function(){console.log(arguments)}})();(function(){window.cat=function(){console.log("hello world")}})()}).call(this);
1+
(function(){window.concat=function(){console.log(arguments)}})();(function(){window.cat=function(){console.log("hello world")}})();

tests/assets/compressors/yuglify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(function(){(function(){window.concat=function(){console.log(arguments)}})(),function(){window.cat=function(){console.log("hello world")}}()}).call(this);
1+
(function(){window.concat=function(){console.log(arguments)}})(),function(){window.cat=function(){console.log("hello world")}}();

tests/assets/compressors/yui.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/tests/test_compressor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def tearDown(self):
208208
def _test_compressor(self, compressor_cls, compress_type, expected_file):
209209
override_settings = {
210210
("%s_COMPRESSOR" % compress_type.upper()): compressor_cls,
211+
'DISABLE_WRAPPER': True,
211212
}
212213
with pipeline_settings(**override_settings):
213214
if compress_type == 'js':

0 commit comments

Comments
 (0)