mirror of
https://github.com/nasa/openmct.git
synced 2025-06-23 17:53:28 +00:00
[Dialog] Test options dialog
Test dialog which provides the user with buttons showing different options, WTD-1033.
This commit is contained in:
@ -86,6 +86,19 @@ define(
|
||||
expect(mockDeferred.reject).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("provides an options dialogs", function () {
|
||||
var dialogModel = {};
|
||||
dialogService.getUserChoice(dialogModel);
|
||||
expect(mockOverlayService.createOverlay).toHaveBeenCalledWith(
|
||||
'overlay-options',
|
||||
{
|
||||
dialog: dialogModel,
|
||||
confirm: jasmine.any(Function),
|
||||
cancel: jasmine.any(Function)
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user