/
data.ts
40 lines (31 loc) · 879 Bytes
/
data.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export const TEST_1_CONTENT = `
import PropTypes from "prop-types";
import React from "react";
type MyComponentProps = {
login: any;
};
type MyComponentState = {
username: string;
password: string;
};
class MyComponent extends React.Component<MyComponentProps, MyComponentState> {
static propTypes: any;
render() {
return (
<React.Fragment>
<div className="test-container">Well</div>
<div className="test-footer" id="an-id"></div>
<a href="#" id="a-link" className="a-link"></a>
<input id="blo" type="text" disabled/>
</React.Fragment>
);
}
}
MyComponent.propTypes = {
login: PropTypes.func.isRequired
};
export default MyComponent;
`;
export const TEST_1_TAG = ["div", "a", "input"];
export const TEST_1_CLASS = ["test-container", "test-footer", "a-link"];
export const TEST_1_ID = ["a-link", "blo"];