[Dialog] Test options dialog

Test dialog which provides the user with buttons showing
different options, WTD-1033.
This commit is contained in:
Victor Woeltjen
2015-03-24 17:26:50 -07:00
parent 8c35f9eb81
commit 548d91d362
2 changed files with 17 additions and 8 deletions

View File

@ -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)
}
);
});
});
}
);