From c9a9f259fcc2ca89ae76f7b0ec0f652bae642133 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Wed, 20 Oct 2021 09:58:07 +0200 Subject: [PATCH] docs: correct JSDoc for MockEvents --- test/util/MockEvents.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/util/MockEvents.js b/test/util/MockEvents.js index 43e59780..113d34e2 100644 --- a/test/util/MockEvents.js +++ b/test/util/MockEvents.js @@ -13,7 +13,7 @@ import { * specified canvas local coordinates. * * @param {Point} point of the event local the canvas (closure) - * @param {Object} data + * @param {Object} [data] * * @return {Event} event, scoped to the given canvas */ @@ -34,7 +34,15 @@ export function createCanvasEvent(position, data) { }); } - +/** + * Create an Event + * + * @param {Element} target + * @param { { x: number, y: number } } position + * @param {any} [data] + * + * @return {Event} + */ export function createEvent(target, position, data) { return getBpmnJS().invoke(function(eventBus) {