import { defineInlineTest } from 'jscodeshift/src/testUtils' ; const transform = require ( '../remove-contextual-h-from-render' ) ; defineInlineTest ( transform , { } , `export default { render: h => h("div", ["hello"]) };` , `import { h } from "vue";\nexport default { render: () => h("div", ["hello"]) };` , 'remove h from arrow functions' ) ; defineInlineTest ( transform , { } , `export default { render(h) { return h("div", ["hello"]); } };` , `import { h } from "vue";\nexport default { render() { return h("div", ["hello"]); } };` , 'remove h from object methods' ) ;