Fixed missing window reference causing test to fail

open #90
open #233
This commit is contained in:
Charles Hacskaylo 2015-11-03 16:45:11 -08:00
parent 09be19310b
commit 903778799f

View File

@ -30,6 +30,7 @@ define(
var mockScope, var mockScope,
mockAgentService, mockAgentService,
mockDomainObjects, mockDomainObjects,
mockWindow,
controller; controller;
// We want to reinstantiate for each test case // We want to reinstantiate for each test case
@ -37,7 +38,8 @@ define(
function instantiateController() { function instantiateController() {
return new PaneController( return new PaneController(
mockScope, mockScope,
mockAgentService mockAgentService,
mockWindow
); );
} }
@ -58,6 +60,7 @@ define(
"agentService", "agentService",
[ "isMobile", "isPhone", "isTablet", "isPortrait", "isLandscape" ] [ "isMobile", "isPhone", "isTablet", "isPortrait", "isLandscape" ]
); );
mockWindow = jasmine.createSpyObj("$window", ["open"]);
}); });
it("is initially visible", function () { it("is initially visible", function () {