From ed3cea07bcb88b70c99038d3bf11d7910b34c972 Mon Sep 17 00:00:00 2001 From: Tim Shedor Date: Mon, 28 Oct 2024 16:14:36 -0700 Subject: [PATCH] fix supabase provider tests --- .../brick_supabase/lib/src/testing/supabase_mock_server.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/brick_supabase/lib/src/testing/supabase_mock_server.dart b/packages/brick_supabase/lib/src/testing/supabase_mock_server.dart index d067d325..93e0db41 100644 --- a/packages/brick_supabase/lib/src/testing/supabase_mock_server.dart +++ b/packages/brick_supabase/lib/src/testing/supabase_mock_server.dart @@ -170,6 +170,8 @@ class SupabaseMockServer { final asMap = Map.from(matchingRequest.value.data); if (asMap.containsKey('payload') && asMap['payload'] != null) { resp.write(jsonEncode([])); + } else { + resp.write(jsonEncode(matchingRequest.value.data)); } } return resp;