const assert = require('assert') const hv = require('..') assert.strictEqual(hv(`
`, 'esm'), `export default function view (props, state) { return h('div') } `) assert.strictEqual(hv(`
`, 'cjs'), `module.exports = function view (props, state) { return h('div') } `) assert.strictEqual(hv(`
`, 'browser'), `window.view = function view (props, state) { return h('div') } `) assert.strictEqual(hv(`
`, 'customVar'), `var customVar = function view (props, state) { return h('div') } `) assert.strictEqual(hv(`
`, 'raw'), `h('div') `) assert.strictEqual(hv(`
`, 'cjs', 'customFnName', 'c u s t o m'), `module.exports = function customFnName (c, u, s, t, o, m) { return h('div') } `)