Yep, agreed. I was actually going to change this to:

cordova.require("cordova/exec")

That way I can define a mock for require in the tests.