summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/test/align.js
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-01-26 17:21:26 +0100
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2017-01-30 14:47:24 -0500
commitafb7c1bac87d943a9ca6422c7100e0e3fe291740 (patch)
tree1ce1f8214473a200de9de52989c1ec8aad8ddf89 /deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/test/align.js
parent5de3cf099cd01c84d1809dab90c041b76aa58d8e (diff)
downloadandroid-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.tar.gz
android-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.tar.bz2
android-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.zip
deps: upgrade npm to 4.1.2
PR-URL: https://github.com/nodejs/node/pull/11020 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/test/align.js')
-rw-r--r--deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/test/align.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/test/align.js b/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/test/align.js
deleted file mode 100644
index 64e9f9dbda..0000000000
--- a/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/test/align.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict'
-var test = require('tap').test
-var align = require('..')
-
-test('align', function (t) {
- t.is(align.center('abc', 10), ' abc ', 'center narrow')
- t.is(align.center('古古古', 10), ' 古古古 ', 'center wide')
- t.is(align.left('abc', 10), 'abc ', 'left narrow')
- t.is(align.left('古古古', 10), '古古古 ', 'left wide')
- t.is(align.right('abc', 10), ' abc', 'right narrow')
- t.is(align.right('古古古', 10), ' 古古古', 'right wide')
-
- t.is(align.center('abc', 2), 'abc', 'center narrow overflow')
- t.is(align.center('古古古', 4), '古古古', 'center wide overflow')
- t.is(align.left('abc', 2), 'abc', 'left narrow overflow')
- t.is(align.left('古古古', 4), '古古古', 'left wide overflow')
- t.is(align.right('abc', 2), 'abc', 'right narrow overflow')
- t.is(align.right('古古古', 4), '古古古', 'right wide overflow')
-
- t.is(align.left('', 5), ' ', 'left align nothing')
- t.is(align.center('', 5), ' ', 'center align nothing')
- t.is(align.right('', 5), ' ', 'right align nothing')
-
- t.is(align.left(' ', 5), ' ', 'left align whitespace')
- t.is(align.center(' ', 5), ' ', 'center align whitespace')
- t.is(align.right(' ', 5), ' ', 'right align whitespace')
-
- t.is(align.left(' ', 2), ' ', 'left align whitespace overflow')
- t.is(align.center(' ', 2), ' ', 'center align whitespace overflow')
- t.is(align.right(' ', 2), ' ', 'right align whitespace overflow')
-
- t.is(align.left('x ', 10), 'x ', 'left align whitespace mix')
- t.is(align.center('x ', 10), ' x ', 'center align whitespace mix')
- t.is(align.right('x ', 10), ' x', 'right align whitespace mix')
-
- t.end()
-})