Skip to content

Commit

Permalink
E*.spec.js: format templates
Browse files Browse the repository at this point in the history
That they are readable again.
With everything on one line, they are not readable.
Also add the required attribute value to ENumberField.spec.js
  • Loading branch information
BacLuc committed May 12, 2024
1 parent 690f237 commit 730ac3a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ describe('An ENumberField', () => {
data: null,
}
},
template: `<div data-app><e-number-field label="test" v-model="data"/></div>`,
template: `
<div data-app>
<e-number-field label="test" v-model="data"/>
</div>
`,
})
return mountComponent(app, { vuetify, attachTo: document.body, ...options })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ describe('An EParseField', () => {
return value === null ? '' : `${value}`
},
},
template: `<div data-app><e-parse-field label="test" :parse="parse" :format="format" v-model="data"/></div>`,
template: `
<div data-app>
<e-parse-field label="test" :parse="parse" :format="format" v-model="data" :value="data"/>
</div>
`,
})
return mountComponent(app, { vuetify, attachTo: document.body, ...options })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('An ESelect', () => {
},
template: `
<div data-app>
<e-select label='test' :items="selectValues" v-model="data"/>
<e-select label='test' :items="selectValues" v-model="data"/>
</div>
`,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ describe('An ETextField', () => {
data: null,
}
},
template: `<div data-app><e-text-field label="test" v-model="data"/></div>`,
template: `
<div data-app>
<e-text-field label="test" v-model="data"/>
</div>
`,
})
return mountComponent(app, { vuetify, attachTo: document.body, ...options })
}
Expand Down

0 comments on commit 730ac3a

Please sign in to comment.