[Pkg-javascript-commits] [node-cliui] 03/06: Patch to adapt test to actual (discutable) situation

Jérémy Lal kapouer at moszumanska.debian.org
Fri Dec 29 22:11:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

kapouer pushed a commit to branch master
in repository node-cliui.

commit b44ebc9cb8c3bf3f60e70373ce008c47ab010fe9
Author: Jérémy Lal <kapouer at melix.org>
Date:   Fri Dec 29 23:00:40 2017 +0100

    Patch to adapt test to actual (discutable) situation
---
 .../somewhat-fix-wrap-ansi-regression-test.patch   | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/debian/patches/somewhat-fix-wrap-ansi-regression-test.patch b/debian/patches/somewhat-fix-wrap-ansi-regression-test.patch
new file mode 100644
index 0000000..89b7811
--- /dev/null
+++ b/debian/patches/somewhat-fix-wrap-ansi-regression-test.patch
@@ -0,0 +1,29 @@
+Description: this test fails with latest wrap-ansi/strip-ansi modules
+ this is not an optimal solution, but upstream is not even sure about what is expected.
+Bug-Upstream: https://github.com/yargs/cliui/pull/55#issuecomment-352538293
+Last-Update: 2017-12-29
+Author: Jérémy Lal <kapouer at melix.org>
+--- a/test/cliui.js
++++ b/test/cliui.js
+@@ -429,16 +429,16 @@
+ 
+       // using figlet font 'Shadow' rendering of text 'true' here
+       ui.div(
+-        chalk.blue('  |                      \n  __|   __|  |   |   _ \\ \n  |    |     |   |   __/ \n \\__| _|    \\__,_| \\___| \n                         ')
++        chalk.blue('  |                  \n  __|   __|  |   |   _ \\ \n  |    |     |   |   __/ \n \\__| _|    \\__,_| \\___| \n                         ')
+       )
+ 
+       // relevant part is first line - leading whitespace should be preserved as left padding
+       var expected = [
+         '  |',
+-        '  __|   __|  |   |   _ \\',
+-        '  |    |     |   |   __/',
+-        ' \\__| _|    \\__,_| \\___|',
+-        '                         '
++        '  __| __| | | _ \\',
++        '  | | | | __/',
++        ' \\__| _| \\__,_| \\___|',
++        ''
+       ]
+ 
+       ui.toString().split('\n').map(function (l) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cliui.git



More information about the Pkg-javascript-commits mailing list