[Pkg-javascript-devel] Bug#977963: node-terser: Please fix test to be compatible with node-commander ≥ 6
Xavier Guimard
yadd at debian.org
Wed Dec 23 12:50:37 GMT 2020
Package: node-terser
Version: 4.1.2-7
Severity: important
Tags: patch
With commander 6, uglifyjs.terser displays:
Usage: uglifyjs [options]...
instead of:
Usage: uglifyjs.terser [options]...
The simple attached patch fixes test check with a more tolerant regex.
Please apply this patch if you think it is useful, this will unblock
node-commander upgrade (available in experimental).
Cheers,
Xavier
-------------- next part --------------
diff --git a/debian/tests/uglifyjs.terser.t b/debian/tests/uglifyjs.terser.t
index 7333e22..2412e1c 100644
--- a/debian/tests/uglifyjs.terser.t
+++ b/debian/tests/uglifyjs.terser.t
@@ -16,7 +16,7 @@ like stdout, qr/^terser [\d.]+$/, 'version, stdout';
cmp_ok stderr, 'eq', '', 'version, stderr';
run_ok $CMD, qw(--help);
-like stdout, qr/^\s*Usage: $CMD \[options\] \[files\.\.\.\]\n/, 'help, stdout';
+like stdout, qr/^\s*Usage: uglifyjs\S* \[options\] \[files\.\.\.\]\n/, 'help, stdout';
cmp_ok stderr, 'eq', '', 'help, stderr';
done_testing;
More information about the Pkg-javascript-devel
mailing list