the-forest/client/node_modules/eslint-plugin-jsx-a11y/__mocks__/JSXSpreadAttributeMock.js

19 lines
424 B
JavaScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
/**
* @flow
*/
import IdentifierMock from './IdentifierMock';
import type { IdentifierMockType } from './IdentifierMock';
export type JSXSpreadAttributeMockType = {
type: 'JSXSpreadAttribute',
argument: IdentifierMockType,
};
export default function JSXSpreadAttributeMock(identifier: string): JSXSpreadAttributeMockType {
return {
type: 'JSXSpreadAttribute',
argument: IdentifierMock(identifier),
};
}