It's not. I needed a way to overwrite the confirm function to properly write a unit test without the mocha bitching about introducing new global variables.