mirror of
https://github.com/nasa/openmct.git
synced 2025-05-08 03:28:33 +00:00
Added test case to DialogServiceSpec
This commit is contained in:
parent
78b528b4a5
commit
fa7431d68b
@ -121,6 +121,17 @@ define(
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("invokes the overlay service with the correct parameters when" +
|
||||||
|
" a blocking dialog is requested", function() {
|
||||||
|
var dialogModel = {};
|
||||||
|
expect(dialogService.showBlockingMessage(dialogModel)).toBe(true);
|
||||||
|
expect(mockOverlayService.createOverlay).toHaveBeenCalledWith(
|
||||||
|
"overlay-blocking-message",
|
||||||
|
dialogModel,
|
||||||
|
"t-dialog-sm"
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
@ -34,13 +34,10 @@ define(
|
|||||||
beforeEach(function(){
|
beforeEach(function(){
|
||||||
mockNotificationService = jasmine.createSpy("notificationService");
|
mockNotificationService = jasmine.createSpy("notificationService");
|
||||||
mockScope = jasmine.createSpy("$scope");
|
mockScope = jasmine.createSpy("$scope");
|
||||||
mockDialogService = {
|
mockDialogService = jasmine.createSpyObj(
|
||||||
getDialogResponse: function(template, model){},
|
"dialogService",
|
||||||
dismiss: function(){}
|
["getDialogResponse","dismiss"]
|
||||||
}
|
);
|
||||||
|
|
||||||
spyOn(mockDialogService, 'getDialogResponse');
|
|
||||||
spyOn(mockDialogService, 'dismiss');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("exposes the highest notification severity to the template", function() {
|
it("exposes the highest notification severity to the template", function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user