Fixed node-detail controller unit test

Jasmine tests for the node-detail controller started failing after
recent functionality updates.

Change-Id: Ia7106dfcdcc892c2bf9801ed43ca6b3e9ca78cc4
This commit is contained in:
Peter Piela 2016-05-11 18:38:15 -04:00 committed by Elizabeth Elwell
parent 206f41779b
commit ad67ad1c06

View File

@ -56,8 +56,14 @@
beforeEach(module('horizon.dashboard.admin.ironic'));
beforeEach(module('horizon.app.core.openstack-service-api', function($provide) {
$provide.value('horizon.app.core.openstack-service-api.ironic', ironicAPI);
beforeEach(module(function($provide) {
$provide.value('horizon.app.core.openstack-service-api.ironic',
ironicAPI);
}));
beforeEach(module(function($provide) {
$provide.value('horizon.dashboard.admin.ironic.maintenance.service',
{});
}));
beforeEach(inject(function ($injector, _$rootScope_, _$location_) {
@ -67,11 +73,11 @@
var $location = _$location_;
$location.path('/admin/ironic/' + nodeUuid + '/');
ctrl = controller('horizon.dashboard.admin.ironic.NodeDetailsController', {
$scope: scope,
$location: $location,
'horizon.dashboard.admin.ironic.actions': {},
'horizon.dashboard.admin.basePath': '/static'});
ctrl = controller(
'horizon.dashboard.admin.ironic.NodeDetailsController',
{$location: $location,
'horizon.dashboard.admin.ironic.actions': {},
'horizon.dashboard.admin.basePath': '/static'});
scope.$apply();
}));