Protractor addMockModule additional arguments not working?
问题 This seems so, so easy, but I can't figure out why this simple code doesn't work. I am adding a mock module to mock my API backend in my Angular E2E tests. I'm using Protractor 1.6.0. I need to pass additional arguments to the mocked module, which, according to the Protractor docs, is possible by just sending them as additional arguments. However, my function claims it has no arguments... var mock = function() { // This is undefined and arguments.length is 0....why??? var env = arguments[0];