Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alakhpc committed Dec 21, 2024
1 parent 0b8a749 commit a4c9ff0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,18 @@ export function AllowServerFnReturnNull() {
{`GET: $allow_return_null_getFn returns`}
<br />
<span data-testid="allow_return_null_getFn-response">
{JSON.stringify(getServerResult ?? '-')}
{JSON.stringify(
getServerResult !== undefined ? getServerResult : '-',
)}
</span>
</p>
<p>
{`POST: $allow_return_null_postFn returns`}
<br />
<span data-testid="allow_return_null_postFn-response">
{JSON.stringify(postServerResult ?? '-')}
{JSON.stringify(
postServerResult !== undefined ? postServerResult : '-',
)}
</span>
</p>
<button
Expand Down
2 changes: 1 addition & 1 deletion e2e/start/basic/tests/base.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ test('env-only functions can only be called on the server or client respectively
)
})

test('Server function can return null for GET and POST calls', async ({
test.only('Server function can return null for GET and POST calls', async ({
page,
}) => {
await page.goto('/server-fns')
Expand Down

0 comments on commit a4c9ff0

Please sign in to comment.