diff --git a/packages/@sparrow-workspaces/src/features/rest-explorer/components/request-tests/sub-components/no-code/NoCode.svelte b/packages/@sparrow-workspaces/src/features/rest-explorer/components/request-tests/sub-components/no-code/NoCode.svelte
index c2893ed73..dba8d8799 100644
--- a/packages/@sparrow-workspaces/src/features/rest-explorer/components/request-tests/sub-components/no-code/NoCode.svelte
+++ b/packages/@sparrow-workspaces/src/features/rest-explorer/components/request-tests/sub-components/no-code/NoCode.svelte
@@ -39,9 +39,9 @@
typeof value === "boolean"
) {
return value;
- } else return "";
+ } else return undefined;
} catch (e) {
- return "";
+ return undefined;
}
};
@@ -638,7 +638,7 @@
yet.
- {:else if getJsonPathValue(test.testPath, responseBody)}
+ {:else if getJsonPathValue(test.testPath, responseBody) || getJsonPathValue(test.testPath, responseBody) === 0 || getJsonPathValue(test.testPath, responseBody) === -0 || getJsonPathValue(test.testPath, responseBody) === ""}
diff --git a/packages/@sparrow-workspaces/src/features/testflow-explorer/components/request-tests/sub-components/no-code/NoCode.svelte b/packages/@sparrow-workspaces/src/features/testflow-explorer/components/request-tests/sub-components/no-code/NoCode.svelte
index 4e77e200d..cda872cf4 100644
--- a/packages/@sparrow-workspaces/src/features/testflow-explorer/components/request-tests/sub-components/no-code/NoCode.svelte
+++ b/packages/@sparrow-workspaces/src/features/testflow-explorer/components/request-tests/sub-components/no-code/NoCode.svelte
@@ -60,9 +60,9 @@
typeof value === "boolean"
) {
return value;
- } else return "";
+ } else return undefined;
} catch (e) {
- return "";
+ return undefined;
}
};
@@ -817,7 +817,7 @@
yet.
- {:else if getJsonPathValue(test.testPath, responseBody)}
+ {:else if getJsonPathValue(test.testPath, responseBody) || getJsonPathValue(test.testPath, responseBody) === 0 || getJsonPathValue(test.testPath, responseBody) === -0 || getJsonPathValue(test.testPath, responseBody) === ""}