@luigi-project/testing-utilities 2.14.0 → 2.14.1-dev.20240760027
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-util.js +6 -6
- package/package.json +1 -1
package/luigi-mock-util.js
CHANGED
|
@@ -50,11 +50,11 @@ export class LuigiMockUtil {
|
|
|
50
50
|
const window = this.getGlobalThis();
|
|
51
51
|
const mockContext = { path, exists };
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
* Sets the path exists mock data in sessionStorage.
|
|
54
|
+
* @param {string} path - The path for which mock data is to be set.
|
|
55
|
+
* @param {boolean} exists - Boolean indicating whether the path exists.
|
|
56
|
+
* @returns {Object} - Object indicating session storage item.
|
|
57
|
+
*/
|
|
58
58
|
const setPathExistsMockData = (context) => {
|
|
59
59
|
window.sessionStorage.clear();
|
|
60
60
|
const pathExistsMockData = {
|
|
@@ -131,7 +131,7 @@ export class LuigiMockUtil {
|
|
|
131
131
|
return undefined;
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
|
-
.filter(
|
|
134
|
+
.filter(item => item !== undefined);
|
|
135
135
|
}
|
|
136
136
|
catch (error) {
|
|
137
137
|
console.debug('Failed to parse luigi mocked messages: ', error);
|