@luigi-project/testing-utilities 2.29.1-dev.202603260051 → 2.29.1-dev.202603270053
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/luigi-mock-engine.js +3 -3
- package/package.json +1 -1
package/luigi-mock-engine.js
CHANGED
|
@@ -41,9 +41,9 @@ export class LuigiMockEngine {
|
|
|
41
41
|
// vizualise retrieved event data
|
|
42
42
|
LuigiMockEngine.visualize(JSON.stringify(e.data));
|
|
43
43
|
// Check and run mocked callback if it exists
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
46
|
-
|
|
44
|
+
const mockListeners = window.luigiMockEnvironment.mockListeners;
|
|
45
|
+
if (Object.hasOwn(mockListeners, e.data.msg)) {
|
|
46
|
+
mockListeners[e.data.msg](e);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
},
|