pirple / The-NodeJS-Master-Class

Code samples for the Node.js Master Class
1.33k stars 1.21k forks source link

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

Open mintunitish opened 6 years ago

mintunitish commented 6 years ago

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 commented 5 years ago

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