why is this line in the function passed to `assert.doesNotThrow`?