@@ -12,7 +12,7 @@ describe('BetterInputTag.vue', () => {
12
12
13
13
beforeEach ( ( cb ) => {
14
14
BetterInputTagComponent = new ClonedComponent ( {
15
- data ( ) { return { tags : [ ] } }
15
+ propsData : { tags : [ ] }
16
16
} ) . $mount ( )
17
17
cb ( )
18
18
} )
@@ -63,8 +63,7 @@ describe('BetterInputTag.vue', () => {
63
63
64
64
describe ( 'read-only="true"' , ( ) => {
65
65
const BetterInputTagComponentReadOnly = new ClonedComponent ( {
66
- data ( ) { return { tags : [ ] } } ,
67
- propsData : { readOnly : true }
66
+ propsData : { tags : [ ] , readOnly : true }
68
67
} ) . $mount ( )
69
68
70
69
it ( 'should have a read-only CSS class and shouldn\'t have a remove tag button' , ( ) => {
@@ -93,7 +92,7 @@ describe('BetterInputTag.vue', () => {
93
92
94
93
describe ( 'tags="[1,2,3]"' , ( ) => {
95
94
const BetterInputTagComponentWithTags = new ClonedComponent ( {
96
- data ( ) { return { tags : [ 'Jerry' , 'Kramer' , 'Elaine' ] } }
95
+ propsData : { tags : [ 'Jerry' , 'Kramer' , 'Elaine' ] }
97
96
} ) . $mount ( )
98
97
99
98
it ( 'should load the tags' , ( ) => {
@@ -115,7 +114,7 @@ describe('BetterInputTag.vue', () => {
115
114
describe ( 'placeholder="Add Tag"' , ( ) => {
116
115
const placeholder = 'Add Tag'
117
116
const BetterInputTagComponentWithPlaceholder = new ClonedComponent ( {
118
- data ( ) { return { placeholder } }
117
+ propsData : { placeholder }
119
118
} ) . $mount ( )
120
119
121
120
it ( 'should have a placeholder' , ( ) => {
0 commit comments