Skip to content

Commit 278787b

Browse files
committed
fix flow typing
1 parent a61158e commit 278787b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-test-renderer/src/ReactTestRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class ReactTestInstance {
335335
findByType(type: any): ReactTestInstance {
336336
return expectOne(
337337
this.findAllByType(type, {deep: false}),
338-
`with node type: "${getComponentName(type)}"`,
338+
`with node type: "${getComponentName(type) || 'Unknown'}"`,
339339
);
340340
}
341341

0 commit comments

Comments
 (0)