From d55b767039605256c736166a942a9138e3eacfd7 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 29 Jun 2025 11:49:28 -0700 Subject: remove dev node_modules (oops) --- node_modules/shell-quote/test/comment.js | 16 ----- node_modules/shell-quote/test/env.js | 52 ---------------- node_modules/shell-quote/test/env_fn.js | 21 ------- node_modules/shell-quote/test/op.js | 102 ------------------------------- node_modules/shell-quote/test/parse.js | 44 ------------- node_modules/shell-quote/test/quote.js | 60 ------------------ node_modules/shell-quote/test/set.js | 31 ---------- 7 files changed, 326 deletions(-) delete mode 100644 node_modules/shell-quote/test/comment.js delete mode 100644 node_modules/shell-quote/test/env.js delete mode 100644 node_modules/shell-quote/test/env_fn.js delete mode 100644 node_modules/shell-quote/test/op.js delete mode 100644 node_modules/shell-quote/test/parse.js delete mode 100644 node_modules/shell-quote/test/quote.js delete mode 100644 node_modules/shell-quote/test/set.js (limited to 'node_modules/shell-quote/test') diff --git a/node_modules/shell-quote/test/comment.js b/node_modules/shell-quote/test/comment.js deleted file mode 100644 index fb15d5c..0000000 --- a/node_modules/shell-quote/test/comment.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var test = require('tape'); -var parse = require('../').parse; - -test('comment', function (t) { - t.same(parse('beep#boop'), ['beep', { comment: 'boop' }]); - t.same(parse('beep #boop'), ['beep', { comment: 'boop' }]); - t.same(parse('beep # boop'), ['beep', { comment: ' boop' }]); - t.same(parse('beep # > boop'), ['beep', { comment: ' > boop' }]); - t.same(parse('beep # "> boop"'), ['beep', { comment: ' "> boop"' }]); - t.same(parse('beep "#"'), ['beep', '#']); - t.same(parse('beep #"#"#'), ['beep', { comment: '"#"#' }]); - t.same(parse('beep > boop # > foo'), ['beep', { op: '>' }, 'boop', { comment: ' > foo' }]); - t.end(); -}); diff --git a/node_modules/shell-quote/test/env.js b/node_modules/shell-quote/test/env.js deleted file mode 100644 index 4cc0a51..0000000 --- a/node_modules/shell-quote/test/env.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -var test = require('tape'); -var parse = require('../').parse; - -test('expand environment variables', function (t) { - t.same(parse('a $XYZ c', { XYZ: 'b' }), ['a', 'b', 'c']); - t.same(parse('a${XYZ}c', { XYZ: 'b' }), ['abc']); - t.same(parse('a${XYZ}c $XYZ', { XYZ: 'b' }), ['abc', 'b']); - t.same(parse('"-$X-$Y-"', { X: 'a', Y: 'b' }), ['-a-b-']); - t.same(parse("'-$X-$Y-'", { X: 'a', Y: 'b' }), ['-$X-$Y-']); - t.same(parse('qrs"$zzz"wxy', { zzz: 'tuv' }), ['qrstuvwxy']); - t.same(parse("qrs'$zzz'wxy", { zzz: 'tuv' }), ['qrs$zzzwxy']); - t.same(parse('qrs${zzz}wxy'), ['qrswxy']); - t.same(parse('qrs$wxy $'), ['qrs', '$']); - t.same(parse('grep "xy$"'), ['grep', 'xy$']); - t.same(parse('ab$x', { x: 'c' }), ['abc']); - t.same(parse('ab\\$x', { x: 'c' }), ['ab$x']); - t.same(parse('ab${x}def', { x: 'c' }), ['abcdef']); - t.same(parse('ab\\${x}def', { x: 'c' }), ['ab${x}def']); - t.same(parse('"ab\\${x}def"', { x: 'c' }), ['ab${x}def']); - - t.end(); -}); - -test('expand environment variables within here-strings', function (t) { - t.same(parse('a <<< $x', { x: 'Joe' }), ['a', { op: '<<<' }, 'Joe']); - t.same(parse('a <<< ${x}', { x: 'Joe' }), ['a', { op: '<<<' }, 'Joe']); - t.same(parse('a <<< "$x"', { x: 'Joe' }), ['a', { op: '<<<' }, 'Joe']); - t.same(parse('a <<< "${x}"', { x: 'Joe' }), ['a', { op: '<<<' }, 'Joe']); - - t.end(); -}); - -test('environment variables with metacharacters', function (t) { - t.same(parse('a $XYZ c', { XYZ: '"b"' }), ['a', '"b"', 'c']); - t.same(parse('a $XYZ c', { XYZ: '$X', X: 5 }), ['a', '$X', 'c']); - t.same(parse('a"$XYZ"c', { XYZ: "'xyz'" }), ["a'xyz'c"]); - - t.end(); -}); - -test('special shell parameters', function (t) { - var chars = '*@#?-$!0_'.split(''); - t.plan(chars.length); - - chars.forEach(function (c) { - var env = {}; - env[c] = 'xxx'; - t.same(parse('a $' + c + ' c', env), ['a', 'xxx', 'c']); - }); -}); diff --git a/node_modules/shell-quote/test/env_fn.js b/node_modules/shell-quote/test/env_fn.js deleted file mode 100644 index 968e912..0000000 --- a/node_modules/shell-quote/test/env_fn.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var test = require('tape'); -var parse = require('../').parse; - -function getEnv() { - return 'xxx'; -} - -function getEnvObj() { - return { op: '@@' }; -} - -test('functional env expansion', function (t) { - t.plan(4); - - t.same(parse('a $XYZ c', getEnv), ['a', 'xxx', 'c']); - t.same(parse('a $XYZ c', getEnvObj), ['a', { op: '@@' }, 'c']); - t.same(parse('a${XYZ}c', getEnvObj), ['a', { op: '@@' }, 'c']); - t.same(parse('"a $XYZ c"', getEnvObj), ['a ', { op: '@@' }, ' c']); -}); diff --git a/node_modules/shell-quote/test/op.js b/node_modules/shell-quote/test/op.js deleted file mode 100644 index 38d3757..0000000 --- a/node_modules/shell-quote/test/op.js +++ /dev/null @@ -1,102 +0,0 @@ -'use strict'; - -var test = require('tape'); -var parse = require('../').parse; - -test('single operators', function (t) { - t.same(parse('beep | boop'), ['beep', { op: '|' }, 'boop']); - t.same(parse('beep|boop'), ['beep', { op: '|' }, 'boop']); - t.same(parse('beep \\| boop'), ['beep', '|', 'boop']); - t.same(parse('beep "|boop"'), ['beep', '|boop']); - - t.same(parse('echo zing &'), ['echo', 'zing', { op: '&' }]); - t.same(parse('echo zing&'), ['echo', 'zing', { op: '&' }]); - t.same(parse('echo zing\\&'), ['echo', 'zing&']); - t.same(parse('echo "zing\\&"'), ['echo', 'zing\\&']); - - t.same(parse('beep;boop'), ['beep', { op: ';' }, 'boop']); - t.same(parse('(beep;boop)'), [ - { op: '(' }, 'beep', { op: ';' }, 'boop', { op: ')' } - ]); - - t.same(parse('beep>boop'), ['beep', { op: '>' }, 'boop']); - t.same(parse('beep 2>boop'), ['beep', '2', { op: '>' }, 'boop']); - t.same(parse('beep>blip'), - ['beep', { op: ';;' }, 'boop', { op: '|&' }, 'byte', { op: '>>' }, 'blip'] - ); - - t.same(parse('beep 2>&1'), ['beep', '2', { op: '>&' }, '1']); - - t.same( - parse('beep<(boop)'), - ['beep', { op: '<(' }, 'boop', { op: ')' }] - ); - t.same( - parse('beep<<(boop)'), - ['beep', { op: '<' }, { op: '<(' }, 'boop', { op: ')' }] - ); - - t.end(); -}); - -test('duplicating input file descriptors', function (t) { - // duplicating stdout to file descriptor 3 - t.same(parse('beep 3<&1'), ['beep', '3', { op: '<&' }, '1']); - - // duplicating stdout to file descriptor 0, i.e. stdin - t.same(parse('beep <&1'), ['beep', { op: '<&' }, '1']); - - // closes stdin - t.same(parse('beep <&-'), ['beep', { op: '<&' }, '-']); - - t.end(); -}); - -test('here strings', function (t) { - t.same(parse('cat <<< "hello world"'), ['cat', { op: '<<<' }, 'hello world']); - t.same(parse('cat <<< hello'), ['cat', { op: '<<<' }, 'hello']); - t.same(parse('cat<<<;{}']), '\\>\\<\\;\\{\\}'); - t.equal(quote(['a', 1, true, false]), 'a 1 true false'); - t.equal(quote(['a', 1, null, undefined]), 'a 1 null undefined'); - t.equal(quote(['a\\x']), "'a\\x'"); - t.equal(quote(['a"b']), '\'a"b\''); - t.equal(quote(['"a"b"']), '\'"a"b"\''); - t.equal(quote(['a\\"b']), '\'a\\"b\''); - t.equal(quote(['a\\b']), '\'a\\b\''); - t.end(); -}); - -test('quote ops', function (t) { - t.equal(quote(['a', { op: '|' }, 'b']), 'a \\| b'); - t.equal( - quote(['a', { op: '&&' }, 'b', { op: ';' }, 'c']), - 'a \\&\\& b \\; c' - ); - t.end(); -}); - -test('quote windows paths', { skip: 'breaking change, disabled until 2.x' }, function (t) { - var path = 'C:\\projects\\node-shell-quote\\index.js'; - - t.equal(quote([path, 'b', 'c d']), 'C:\\projects\\node-shell-quote\\index.js b \'c d\''); - - t.end(); -}); - -test("chars for windows paths don't break out", function (t) { - var x = '`:\\a\\b'; - t.equal(quote([x]), "'`:\\a\\b'"); - t.end(); -}); - -test('empty strings', function (t) { - t.equal(quote(['-x', '', 'y']), '-x \'\' y'); - - t.end(); -}); diff --git a/node_modules/shell-quote/test/set.js b/node_modules/shell-quote/test/set.js deleted file mode 100644 index 9694538..0000000 --- a/node_modules/shell-quote/test/set.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; - -var test = require('tape'); -var parse = require('../').parse; - -test('set env vars', function (t) { - t.same( - parse('ABC=444 x y z'), - ['ABC=444', 'x', 'y', 'z'] - ); - t.same( - parse('ABC=3\\ 4\\ 5 x y z'), - ['ABC=3 4 5', 'x', 'y', 'z'] - ); - t.same( - parse('X="7 8 9" printx'), - ['X=7 8 9', 'printx'] - ); - t.same( - parse('X="7 8 9"; printx'), - ['X=7 8 9', { op: ';' }, 'printx'] - ); - t.same( - parse('X="7 8 9"; printx', function () { - t.fail('should not have matched any keys'); - }), - ['X=7 8 9', { op: ';' }, 'printx'] - ); - - t.end(); -}); -- cgit v1.2.3