Fabric: Fixed ComponentDescriptorTest

Summary: Trivial.

Reviewed By: mdvacca

Differential Revision: D7591712

fbshipit-source-id: fbcaaa30004f096749a6bcd47dcc56c060d7524a
This commit is contained in:
Valentin Shergin 2018-04-16 07:43:25 -07:00 committed by Facebook Github Bot
parent c399d69716
commit 82bd4337c9

View File

@ -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) {