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

Newbie needing advice on handling exceptions in a node unit. #49

Open
rquadling opened this issue Jul 21, 2017 · 0 comments
Open

Newbie needing advice on handling exceptions in a node unit. #49

rquadling opened this issue Jul 21, 2017 · 0 comments

Comments

@rquadling
Copy link

rquadling commented Jul 21, 2017

Hi.

I recently inherited ownership of https://github.com/rquadling/grunt-html2js (the company I work for use it and it was no longer being maintained).

I'm not a JS expert, but I'm learning what I need.

I'm stuck trying to track/catch exceptions / grunt.log.warn / grunt.log.error that the main code can generate in the unit tests such that I can see that the code and tests are working correctly.

Currently, an exception thrown in the code just aborts the whole test run.

If anyone has the time to pop over to the repo and take a look at the test setup and give me any pointers (and raise issues over there), then I'd be happy to learn from this.

Specifically, how to fix rquadling/grunt-html2js#76

I've created a branch with tests, but they are empty at the moment.

https://github.com/rquadling/grunt-html2js/blob/issue_76/test/html2js_test.js#L358

Thanks.

Richard.

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