#8448 - devToTest #1254
|
@ -17,8 +17,8 @@ describe('tags computed property', () => {
|
||||||
value: 'value',
|
value: 'value',
|
||||||
columns: 2,
|
columns: 2,
|
||||||
},
|
},
|
||||||
});
|
}).vm;
|
||||||
expect(vm.vm.tags).toEqual({
|
expect(vm.tags).toEqual({
|
||||||
JavaScript: 'Programming Language',
|
JavaScript: 'Programming Language',
|
||||||
Vue: 'Framework',
|
Vue: 'Framework',
|
||||||
EmptyTag: '',
|
EmptyTag: '',
|
||||||
|
@ -32,8 +32,8 @@ describe('tags computed property', () => {
|
||||||
tag: 'tag',
|
tag: 'tag',
|
||||||
value: 'value',
|
value: 'value',
|
||||||
},
|
},
|
||||||
});
|
}).vm;
|
||||||
expect(vm.vm.tags).toEqual({});
|
expect(vm.tags).toEqual({});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should calculate the correct columnStyle when columns prop is defined', () => {
|
it('should calculate the correct columnStyle when columns prop is defined', () => {
|
||||||
|
@ -50,14 +50,14 @@ describe('tags computed property', () => {
|
||||||
value: 'value',
|
value: 'value',
|
||||||
columns: 2,
|
columns: 2,
|
||||||
},
|
},
|
||||||
});
|
}).vm;
|
||||||
|
|
||||||
const expectedStyle = {
|
const expectedStyle = {
|
||||||
'grid-template-columns': 'repeat(2, 1fr)',
|
'grid-template-columns': 'repeat(2, 1fr)',
|
||||||
'max-width': '8rem',
|
'max-width': '8rem',
|
||||||
};
|
};
|
||||||
|
|
||||||
expect(vm.vm.columnStyle).toEqual(expectedStyle);
|
expect(vm.columnStyle).toEqual(expectedStyle);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return an empty object for columnStyle when columns prop is not defined', () => {
|
it('should return an empty object for columnStyle when columns prop is not defined', () => {
|
||||||
|
@ -74,8 +74,8 @@ describe('tags computed property', () => {
|
||||||
value: 'value',
|
value: 'value',
|
||||||
columns: null,
|
columns: null,
|
||||||
},
|
},
|
||||||
});
|
}).vm;
|
||||||
|
|
||||||
expect(vm.vm.columnStyle).toEqual({});
|
expect(vm.columnStyle).toEqual({});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue