Added test case to DialogServiceSpec

This commit is contained in:
Henry
2015-10-23 12:01:48 -07:00
parent 78b528b4a5
commit fa7431d68b
2 changed files with 15 additions and 7 deletions

View File

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