Skip to content

Commit 792d711

Browse files
committed
chore: remove incorrect test
1 parent babba62 commit 792d711

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/__tests__/render-async.test.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,3 @@ test('container property displays deprecation message', async () => {
101101
Consider using 'root' property which returns root host element."
102102
`);
103103
});
104-
105-
test('debug function handles null JSON', async () => {
106-
const result = await renderAsync(<View testID="test" />);
107-
108-
// Mock toJSON to return null to test the debug edge case
109-
const originalToJSON = result.toJSON;
110-
(result as any).toJSON = jest.fn().mockReturnValue(null);
111-
112-
// This should not throw and handle null JSON gracefully
113-
expect(() => result.debug()).not.toThrow();
114-
115-
// Restore original toJSON
116-
(result as any).toJSON = originalToJSON;
117-
});

0 commit comments

Comments
 (0)