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