diff options
Diffstat (limited to 'node_modules/shell-quote/test/env_fn.js')
-rw-r--r-- | node_modules/shell-quote/test/env_fn.js | 19 |
1 files changed, 0 insertions, 19 deletions
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 b9f3c20..0000000 --- a/node_modules/shell-quote/test/env_fn.js +++ /dev/null @@ -1,19 +0,0 @@ -var test = require('tape'); -var parse = require('../').parse; - -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' ]); - - function getEnv (key) { - return 'xxx'; - } - - function getEnvObj (key) { - return { op: '@@' }; - } -}); |