- Accepts file names as command line parameters.
fileReader(files, callback)function is then called with a callback to read the contents of the filesfileReader(files, callback)returns the contents of the files stored in an array, in the same order the files were passed in as parameters
-
called using
reader(files, callback) -
gets contents of files and runs error first callback with files
-
clone repo by running the command in terminal:
git clone https://github.com/401-advanced-javascript-js/lab-03-async.git -
run the following command in terminal:
npm i
-
run the following command in terminal:
npm test
-
How do you run tests?
npm test -
What assertions were made?
- tests for:
reader.jsreader-promises.jsreader-async.js
- tests for: