assert.throws('string',TypeError,'whatever');// should fail but doesn'tFrom here:
assert.throws() calls the first argument as a function. The result is a TypeError when the input is a string but it doesn't seem to check that the exception message matches.
From here: