JSXSpreadAttributeMock.js 424 B

123456789101112131415161718
  1. /**
  2. * @flow
  3. */
  4. import IdentifierMock from './IdentifierMock';
  5. import type { IdentifierMockType } from './IdentifierMock';
  6. export type JSXSpreadAttributeMockType = {
  7. type: 'JSXSpreadAttribute',
  8. argument: IdentifierMockType,
  9. };
  10. export default function JSXSpreadAttributeMock(identifier: string): JSXSpreadAttributeMockType {
  11. return {
  12. type: 'JSXSpreadAttribute',
  13. argument: IdentifierMock(identifier),
  14. };
  15. }