mirror of
https://github.com/nasa/openmct.git
synced 2025-04-20 17:11:11 +00:00
[Mobile] Tests
BrowseObjectControllerSpec adjusted to have a mockAgenstService. Test completed.
This commit is contained in:
parent
08794346c8
commit
1f9728d29c
@ -32,6 +32,7 @@ define(
|
||||
mockLocation,
|
||||
mockRoute,
|
||||
mockWindow,
|
||||
mockAgentService,
|
||||
mockUnlisten,
|
||||
controller;
|
||||
|
||||
@ -56,6 +57,7 @@ define(
|
||||
"$location",
|
||||
[ "path", "search" ]
|
||||
);
|
||||
mockAgentService = jasmine.createSpyObj("agentService", ["isMobile"]);
|
||||
mockUnlisten = jasmine.createSpy("unlisten");
|
||||
|
||||
mockScope.$on.andReturn(mockUnlisten);
|
||||
@ -64,7 +66,8 @@ define(
|
||||
mockScope,
|
||||
mockLocation,
|
||||
mockRoute,
|
||||
mockWindow
|
||||
mockWindow,
|
||||
mockAgentService
|
||||
);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user