diff options
Diffstat (limited to 'node_modules/promzard/test/fn.input')
-rw-r--r-- | node_modules/promzard/test/fn.input | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/promzard/test/fn.input b/node_modules/promzard/test/fn.input new file mode 100644 index 000000000..ed6c3f1c8 --- /dev/null +++ b/node_modules/promzard/test/fn.input @@ -0,0 +1,18 @@ +var fs = require('fs') + +module.exports = { + "a": 1 + 2, + "b": prompt('To be or not to be?', '!2b', function (s) { + return s.toUpperCase() + '...' + }), + "c": { + "x": prompt(function (x) { return x * 100 }), + "y": tmpdir + "/y/file.txt" + }, + a_function: function (cb) { + fs.readFile(__filename, 'utf8', cb) + }, + asyncPrompt: function (cb) { + return cb(null, prompt('a prompt at any other time would smell as sweet')) + } +} |