mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 09:40:33 +03:00
test: add generator/updater test for array attributes
This commit is contained in:
committed by
Alexander Lichter
parent
9d8ea758ac
commit
c9a732c9d7
@@ -196,12 +196,12 @@ const metaInfoData = {
|
|||||||
},
|
},
|
||||||
bodyAttrs: {
|
bodyAttrs: {
|
||||||
add: {
|
add: {
|
||||||
data: { foo: 'bar' },
|
data: { foo: 'bar', fizz: ['fuzz', 'fozz'] },
|
||||||
expect: ['<body foo="bar" data-vue-meta="foo">']
|
expect: ['<body foo="bar" fizz="fuzz fozz" data-vue-meta="fizz,foo">']
|
||||||
},
|
},
|
||||||
change: {
|
change: {
|
||||||
data: { foo: 'baz' },
|
data: { foo: 'baz' },
|
||||||
expect: ['<body foo="baz" data-vue-meta="foo">']
|
expect: ['<body foo="baz" data-vue-meta="fizz,foo">']
|
||||||
},
|
},
|
||||||
remove: {
|
remove: {
|
||||||
data: {},
|
data: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user