Skip to content

Commit 80e650c

Browse files
committed
chore: fix formatting
1 parent 9b22d86 commit 80e650c

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

Diff for: test/unit/modules/compiler/compiler-options.spec.js

+19-17
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ describe('compile options', () => {
99
<input type="text" v-model="msg" required max="8" v-validate:field1.group1.group2>
1010
</div>
1111
`, {
12-
directives: {
13-
validate (el, dir) {
14-
if (dir.name === 'validate' && dir.arg) {
15-
el.validate = {
16-
field: dir.arg,
17-
groups: dir.modifiers ? Object.keys(dir.modifiers) : []
18-
}
12+
directives: {
13+
validate (el, dir) {
14+
if (dir.name === 'validate' && dir.arg) {
15+
el.validate = {
16+
field: dir.arg,
17+
groups: dir.modifiers ? Object.keys(dir.modifiers) : []
1918
}
2019
}
21-
},
22-
modules: [{
20+
}
21+
},
22+
modules: [
23+
{
2324
transformNode (el) {
2425
el.validators = el.validators || []
2526
const validators = ['required', 'min', 'max', 'pattern', 'maxlength', 'minlength']
@@ -52,15 +53,16 @@ describe('compile options', () => {
5253
})
5354
// generate code
5455
return `_c('validate',{props:{
55-
field:${JSON.stringify(el.validate.field)},
56-
groups:${JSON.stringify(el.validate.groups)},
57-
validators:${JSON.stringify(el.validators)},
58-
result:${JSON.stringify(result)},
59-
child:${code}}
60-
})`
56+
field:${JSON.stringify(el.validate.field)},
57+
groups:${JSON.stringify(el.validate.groups)},
58+
validators:${JSON.stringify(el.validators)},
59+
result:${JSON.stringify(result)},
60+
child:${code}}
61+
})`
6162
}
62-
}]
63-
})
63+
}
64+
]
65+
})
6466
expect(render).not.toBeUndefined()
6567
expect(staticRenderFns).toEqual([])
6668
expect(errors).toEqual([])

0 commit comments

Comments
 (0)