SmartIT_Extensions/BMC/smart-it-full/test/app/location/location-map-controller.spe...

25 lines
727 B
JavaScript

describe("Test Controller LocationMapController", function () {
var scope, createController, controller;
beforeEach(module('myitsmApp'));
beforeEach(inject(function ($rootScope, $controller) {
scope = $rootScope.$new();
createController = function () {
return $controller('LocationMapController', {
'$scope': scope,
'$stateParams': {id: 1234}
});
};
controller = createController();
}));
it(' should match the $stateparam id ', function () {
expect(scope.POI.id).toEqual(1234);
});
it(' should return loadingMap true ', function () {
expect(scope.state.loadingMap).toBeTruthy();
});
});