From 6389e52305f0d2e75a7bc6f8703c8d163d04cb99 Mon Sep 17 00:00:00 2001 From: Richard van Velzen Date: Thu, 6 Oct 2016 14:11:19 +0200 Subject: Remove console.log and add extra test case --- test/compress/wrap_iife.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/compress/wrap_iife.js') diff --git a/test/compress/wrap_iife.js b/test/compress/wrap_iife.js index b1b88ac1..5c45853a 100644 --- a/test/compress/wrap_iife.js +++ b/test/compress/wrap_iife.js @@ -15,6 +15,21 @@ wrap_iife: { expect_exact: '(function(){return function(){console.log("test")}})()();' } +wrap_iife_in_expression: { + options = { + negate_iife: false, + } + beautify = { + wrap_iife: true, + } + input: { + foo = (function () { + return bar(); + })(); + } + expect_exact: 'foo=(function(){return bar()})();' +} + wrap_iife_in_return_call: { options = { negate_iife: false, -- cgit v1.2.3