Skip to content

Tests pass! #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

npisciotti1
Copy link

No description provided.


const fileReader = require('./lib/file-reader.js');

fileReader.readAllFiles();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You set up your function to take an array of file names and a callback but you aren't passing in any parameters here when you call it. Refactor index.js slightly so that you can call node index.js from the command line and have it print out the data you are looking for. You are really close here!

expect(data[2]).to.equal(expectedResults[2]);
console.log('data', data);
done();
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job remembering to call done(). Also, this is a good test it will make sure everything is coming back in order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants