mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
Fabric: Fixed ComponentDescriptorTest
Summary: Trivial. Reviewed By: mdvacca Differential Revision: D7591712 fbshipit-source-id: fbcaaa30004f096749a6bcd47dcc56c060d7524a
This commit is contained in:
parent
c399d69716
commit
82bd4337c9
@ -26,9 +26,7 @@ TEST(ComponentDescriptorTest, createShadowNode) {
|
|||||||
ASSERT_STREQ(node->getComponentName().c_str(), "Test");
|
ASSERT_STREQ(node->getComponentName().c_str(), "Test");
|
||||||
ASSERT_EQ(node->getTag(), 9);
|
ASSERT_EQ(node->getTag(), 9);
|
||||||
ASSERT_EQ(node->getRootTag(), 1);
|
ASSERT_EQ(node->getRootTag(), 1);
|
||||||
|
ASSERT_STREQ(node->getProps()->getNativeId().c_str(), "abc");
|
||||||
// TODO(#27369757): getProps() doesn't work
|
|
||||||
// ASSERT_STREQ(node->getProps()->getNativeId().c_str(), "testNativeID");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(ComponentDescriptorTest, cloneShadowNode) {
|
TEST(ComponentDescriptorTest, cloneShadowNode) {
|
||||||
@ -44,9 +42,7 @@ TEST(ComponentDescriptorTest, cloneShadowNode) {
|
|||||||
ASSERT_STREQ(cloned->getComponentName().c_str(), "Test");
|
ASSERT_STREQ(cloned->getComponentName().c_str(), "Test");
|
||||||
ASSERT_EQ(cloned->getTag(), 9);
|
ASSERT_EQ(cloned->getTag(), 9);
|
||||||
ASSERT_EQ(cloned->getRootTag(), 1);
|
ASSERT_EQ(cloned->getRootTag(), 1);
|
||||||
|
ASSERT_STREQ(cloned->getProps()->getNativeId().c_str(), "abc");
|
||||||
// TODO(#27369757): getProps() doesn't work
|
|
||||||
// ASSERT_STREQ(cloned->getProps()->getNativeId().c_str(), "testNativeID");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(ComponentDescriptorTest, appendChild) {
|
TEST(ComponentDescriptorTest, appendChild) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user