Gazebo_simulation-Frontend/node_modules/eslint-plugin-jsx-a11y/__mocks__/JSXElementMock.js
2020-12-21 10:29:31 -05:00

25 lines
415 B
JavaScript

/**
* @flow
*/
import JSXAttributeMock from './JSXAttributeMock';
export default function JSXElementMock(
tagName: string,
attributes: Array<JSXAttributeMock>,
children: Array<Node> = [],
) {
return {
type: 'JSXElement',
openingElement: {
type: 'JSXOpeningElement',
name: {
type: 'JSXIdentifier',
name: tagName,
},
attributes,
},
children,
};
}