fix tests by adding listen function, and fix lint/checkstyle errors

This commit is contained in:
Deep Tailor
2017-10-10 13:32:42 -07:00
parent 7deb3cd025
commit a4a1cb5e05
2 changed files with 12 additions and 4 deletions

View File

@ -24,8 +24,8 @@
* Module defining ObjectInspectorController. Created by shale on 08/21/2015. * Module defining ObjectInspectorController. Created by shale on 08/21/2015.
*/ */
define( define(
[], ['angular'],
function () { function (angular) {
/** /**
* The ObjectInspectorController gets and formats the data for * The ObjectInspectorController gets and formats the data for

View File

@ -42,7 +42,15 @@ define(
["$watch"] ["$watch"]
); );
mockScope.ngModel = {}; mockScope.ngModel = {};
mockScope.ngModel.selectedObject = 'mock selected object'; mockScope.ngModel.selectedObject = {
getCapability: function () {
return {
listen: function () {
return true;
}
};
}
};
mockObjectService = jasmine.createSpyObj( mockObjectService = jasmine.createSpyObj(
"objectService", "objectService",