react-is: fix lazy and memo tests

This commit is contained in:
Sebastian Silbermann
2019-01-08 15:14:21 +01:00
parent b4994d69de
commit a762d4c181
+4 -4
View File
@@ -86,12 +86,12 @@ ReactIs.isForwardRef(<ForwardRefComponent />); // true
ReactIs.typeOf(<ForwardRefComponent />) === ReactIs.ForwardRef; // true
// Lazy
ReactIs.isLazy(<LazyComponent />); // true
ReactIs.typeOf(<LazyComponent />) === ReactIs.Lazy; // true
ReactIs.isLazy(LazyComponent); // true
ReactIs.typeOf(LazyComponent) === ReactIs.Lazy; // true
// Memo
ReactIs.isMemo(<MemoComponent />); // true
ReactIs.typeOf(<MemoComponent />) === ReactIs.Memo; // true
ReactIs.isMemo(MemoComponent); // true
ReactIs.typeOf(MemoComponent) === ReactIs.Memo; // true
// Suspense
ReactIs.isForwardRef(<React.Suspense fallback={StatelessComponent} />); // true