The-NodeJS-Master-Class icon indicating copy to clipboard operation
The-NodeJS-Master-Class copied to clipboard

try catch not working in tests/index.js file

Open mintunitish opened this issue 7 years ago • 1 comments

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,

mintunitish avatar Oct 27 '18 18:10 mintunitish

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

T-x-T avatar Sep 28 '19 13:09 T-x-T