Skip to content

Commit 93abed0

Browse files
committed
Add test fixture for render public class field
1 parent a8f3e51 commit 93abed0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/__tests__/__snapshots__/main-test.js.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,13 @@ Object {
192192
}
193193
`;
194194

195+
exports[`main fixtures processes component "component_9.js" without errors 1`] = `
196+
Object {
197+
"description": "Should be recognized as component.",
198+
"methods": Array [],
199+
}
200+
`;
201+
195202
exports[`main fixtures processes component "component_10.js" without errors 1`] = `
196203
Object {
197204
"description": "React component that display current time at current location.",

src/__tests__/fixtures/component_9.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Testing render method as public class field.
3+
*/
4+
import view from "./view.jsx";
5+
/**
6+
* Should be recognized as component.
7+
*/
8+
export default class ExampleComponent extends SomeOtherComponent {
9+
render = view;
10+
}

0 commit comments

Comments
 (0)