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

try catch not working in tests/index.js file #12

Open
mintunitish opened this issue Oct 27, 2018 · 1 comment
Open

try catch not working in tests/index.js file #12

mintunitish opened this issue Oct 27, 2018 · 1 comment

Comments

@mintunitish
Copy link

Getting this when running tests:

logs.truncate should not throw if the log id does not exist. It should callback err instead
assert.js:337
throw err;
^

AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

assert.ok(logFileNames.length > 1)

Instead the thrown error should have been handled by catch block,

@T-x-T
Copy link

T-x-T commented Sep 28, 2019

Im having the same issue, have you been able to resolve it?

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

2 participants