18 lines
243 B
JavaScript
18 lines
243 B
JavaScript
|
/**
|
||
|
* @flow
|
||
|
*/
|
||
|
|
||
|
export type JSXTextMockType = {|
|
||
|
type: 'JSXText',
|
||
|
value: string,
|
||
|
raw: string,
|
||
|
|};
|
||
|
|
||
|
export default function JSXTextMock(value: string): JSXTextMockType {
|
||
|
return {
|
||
|
type: 'JSXText',
|
||
|
value,
|
||
|
raw: value,
|
||
|
};
|
||
|
}
|