mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-09 16:42:24 +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: {
|
||||
add: {
|
||||
data: { foo: 'bar' },
|
||||
expect: ['<body foo="bar" data-vue-meta="foo">']
|
||||
data: { foo: 'bar', fizz: ['fuzz', 'fozz'] },
|
||||
expect: ['<body foo="bar" fizz="fuzz fozz" data-vue-meta="fizz,foo">']
|
||||
},
|
||||
change: {
|
||||
data: { foo: 'baz' },
|
||||
expect: ['<body foo="baz" data-vue-meta="foo">']
|
||||
expect: ['<body foo="baz" data-vue-meta="fizz,foo">']
|
||||
},
|
||||
remove: {
|
||||
data: {},
|
||||
|
||||
Reference in New Issue
Block a user