var Uglify = require('../../'); var assert = require("assert"); describe("comment before constant", function() { var js = 'function f() { /*c1*/ var /*c2*/ foo = /*c3*/ false; return foo; }'; it("Should test comment before constant is retained and output after mangle.", function() { var result = Uglify.minify(js, { fromString: true, compress: { collapse_vars: false }, mangle: {}, output: { comments: true }, }); assert.strictEqual(result.code, 'function f(){/*c1*/var/*c2*/n=/*c3*/!1;return n}'); }); it("Should test code works when comments disabled.", function() { var result = Uglify.minify(js, { fromString: true, compress: { collapse_vars: false }, mangle: {}, output: {}, }); assert.strictEqual(result.code, 'function f(){var n=!1;return n}'); }); }); tomized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/containers.scm
AgeCommit message (Expand)Author
2020-10-01linux-container: Reset jailed root permissions....Jelle Licht
2019-10-15tests: Skip container test when lacking kernel support....Ludovic Courtès
2019-09-18linux-container: 'eval/container' correctly passes -L and -C flags....Ludovic Courtès
2019-07-19linux-container: Add 'eval/container'....Ludovic Courtès
2019-04-02linux-container: Make the guest UID and GID a parameter....Ludovic Courtès
2017-05-31tests: Fix race condition in 'container-excursion*' test....Ludovic Courtès
2017-02-07linux-container: Add 'container-excursion*'....Ludovic Courtès
2016-11-13tests: Don't check file-systems in container tests....Andy Patterson
2016-11-10container: Pass a list of <file-system> objects as things to mount....Ludovic Courtès