Skip to content

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