This method of mocking out executeScript seems a bit fragile, and won't extend well if these tests are used for anything other than just mock modules. 

Instead, I'd just make this an empty function, and then use jasmine to `spyOn(webDriver, 'executeScript')` and verify that it's called with the expected scripts.