source:
frontend/node_modules/eslint-plugin-jsx-a11y/__mocks__/JSXTextMock.js
| Last change on this file was 9af201e, checked in by , 13 days ago | |
|---|---|
|
|
| File size: 243 bytes | |
| Line | |
|---|---|
| 1 | /** |
| 2 | * @flow |
| 3 | */ |
| 4 | |
| 5 | export type JSXTextMockType = {| |
| 6 | type: 'JSXText', |
| 7 | value: string, |
| 8 | raw: string, |
| 9 | |}; |
| 10 | |
| 11 | export default function JSXTextMock(value: string): JSXTextMockType { |
| 12 | return { |
| 13 | type: 'JSXText', |
| 14 | value, |
| 15 | raw: value, |
| 16 | }; |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
