Skip to content
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

not working when loading the module from unit tests #37

Open
amitguptagwl opened this issue Jan 14, 2017 · 0 comments
Open

not working when loading the module from unit tests #37

amitguptagwl opened this issue Jan 14, 2017 · 0 comments

Comments

@amitguptagwl
Copy link

amitguptagwl commented Jan 14, 2017

I have no idea how it stops working when I load my module in unit tests while it works directly. I'm not spying fa or path modules.

I'm using jasmine for unit testing

console.log(filePath);//working
console.log(fs.readFileSync(filePath).toString());//working
lineReader.eachLine(filePath, function(line, last) {
    console.log(line);//not reaching here
});
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

No branches or pull requests

1 participant