Fix formatting

This commit is contained in:
tomdds
2019-07-12 12:13:22 -04:00
parent 38a01f7db3
commit 0682411954
4 changed files with 78 additions and 79 deletions

View File

@@ -16,24 +16,25 @@ to be passed as a prop to checkboxinput at mount time
v-bind:initial-checked='initialvalue'
>
*/
const makeTestWrapper = ({components, templatePath}) => {
const templateString = fs.readFileSync(`js/test_templates/${templatePath}`, 'utf-8')
const makeTestWrapper = ({ components, templatePath }) => {
const templateString = fs.readFileSync(
`js/test_templates/${templatePath}`,
'utf-8'
)
const WrapperComponent = {
name: 'WrapperComponent',
components,
template: templateString,
props: ['initialData'],
data: function() {
return {
initialvalue: this.initialData
}
}
}
const WrapperComponent = {
name: 'WrapperComponent',
components,
template: templateString,
props: ['initialData'],
data: function() {
return {
initialvalue: this.initialData,
}
},
}
return WrapperComponent
return WrapperComponent
}
export {
makeTestWrapper
}
export { makeTestWrapper }