mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
RN: Migrate LogBoxInspectorSection-test.js from Shallow Renderer (#44983)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44983 Migrates this Jest unit test away from using `react-shallow-renderer` because it is no longer recommended. Changelog: [Internal] Reviewed By: robhogan Differential Revision: D58643056 fbshipit-source-id: 61494765f68f1810b19a33f5e2a6c5d4087ce11c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a83d8d1590
commit
8c0541cb12
+2
-2
@@ -17,7 +17,7 @@ const React = require('react');
|
||||
|
||||
describe('LogBoxInspectorSection', () => {
|
||||
it('should render with only heading', () => {
|
||||
const output = render.shallowRender(
|
||||
const output = render.create(
|
||||
<LogBoxInspectorSection heading="Test Section">
|
||||
<Text>Child</Text>
|
||||
</LogBoxInspectorSection>,
|
||||
@@ -27,7 +27,7 @@ describe('LogBoxInspectorSection', () => {
|
||||
});
|
||||
|
||||
it('should render with action on the right', () => {
|
||||
const output = render.shallowRender(
|
||||
const output = render.create(
|
||||
<LogBoxInspectorSection
|
||||
heading="Test Section"
|
||||
action={<Text>Right</Text>}>
|
||||
|
||||
Reference in New Issue
Block a user