From a4c9ff0ce60604c9ac109f111112d34652425b7a Mon Sep 17 00:00:00 2001
From: alakhpc
Date: Fri, 20 Dec 2024 22:51:13 -0500
Subject: [PATCH] Fix test
---
.../basic/app/routes/-server-fns/allow-fn-return-null.tsx | 8 ++++++--
e2e/start/basic/tests/base.spec.ts | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/e2e/start/basic/app/routes/-server-fns/allow-fn-return-null.tsx b/e2e/start/basic/app/routes/-server-fns/allow-fn-return-null.tsx
index 781b8bc337..2f408d1015 100644
--- a/e2e/start/basic/app/routes/-server-fns/allow-fn-return-null.tsx
+++ b/e2e/start/basic/app/routes/-server-fns/allow-fn-return-null.tsx
@@ -37,14 +37,18 @@ export function AllowServerFnReturnNull() {
{`GET: $allow_return_null_getFn returns`}
- {JSON.stringify(getServerResult ?? '-')}
+ {JSON.stringify(
+ getServerResult !== undefined ? getServerResult : '-',
+ )}
{`POST: $allow_return_null_postFn returns`}
- {JSON.stringify(postServerResult ?? '-')}
+ {JSON.stringify(
+ postServerResult !== undefined ? postServerResult : '-',
+ )}