mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +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(){
|
||||
mockNotificationService = jasmine.createSpy("notificationService");
|
||||
mockScope = jasmine.createSpy("$scope");
|
||||
mockDialogService = {
|
||||
getDialogResponse: function(template, model){},
|
||||
dismiss: function(){}
|
||||
}
|
||||
|
||||
spyOn(mockDialogService, 'getDialogResponse');
|
||||
spyOn(mockDialogService, 'dismiss');
|
||||
mockDialogService = jasmine.createSpyObj(
|
||||
"dialogService",
|
||||
["getDialogResponse","dismiss"]
|
||||
);
|
||||
});
|
||||
|
||||
it("exposes the highest notification severity to the template", function() {
|
||||
|
Loading…
Reference in New Issue
Block a user