The-NodeJS-Master-Class
The-NodeJS-Master-Class copied to clipboard
try catch not working in tests/index.js file
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,
Im having the same issue, have you been able to resolve it?