@ -9,18 +9,21 @@ export default test({
quote : 'q1' ,
quote : 'q1' ,
'wrong-quote' : 'wq1' ,
'wrong-quote' : 'wq1' ,
16 : '16' ,
16 : '16' ,
17 : '17' ,
class : 'class'
class : 'class'
} ,
} ,
{
{
quote : 'q2' ,
quote : 'q2' ,
'wrong-quote' : 'wq2' ,
'wrong-quote' : 'wq2' ,
16 : 'sixteen' ,
16 : 'sixteen' ,
17 : 'seventeen' ,
class : 'glass'
class : 'glass'
} ,
} ,
{
{
quote : 'q3' ,
quote : 'q3' ,
'wrong-quote' : 'wq3' ,
'wrong-quote' : 'wq3' ,
16 : 'seize' ,
16 : 'seize' ,
17 : 'dix-sept' ,
class : 'mass'
class : 'mass'
}
}
]
]
@ -28,19 +31,19 @@ export default test({
} ,
} ,
html : `
html : `
< p class = "class" > Quote : q1 , Wrong Quote : wq1 , 16 : 16 < / p >
< p class = "class" > Quote : q1 , Wrong Quote : wq1 , 16 : 16 , 17 : 17 < / p >
< p class = "glass" > Quote : q2 , Wrong Quote : wq2 , 16 : sixteen < / p >
< p class = "glass" > Quote : q2 , Wrong Quote : wq2 , 16 : sixteen , 17 : seventeen < / p >
< p class = "mass" > Quote : q3 , Wrong Quote : wq3 , 16 : seize < / p >
< p class = "mass" > Quote : q3 , Wrong Quote : wq3 , 16 : seize , 17 : dix - sept < / p >
` ,
` ,
test ( { assert , component , target } ) {
test ( { assert , component , target } ) {
component . objectsArray = [
component . objectsArray = [
{ quote : 'new-quote' , 'wrong-quote' : 'wq4' , 16 : 'ten+six' , role : 'role' }
{ quote : 'new-quote' , 'wrong-quote' : 'wq4' , 16 : 'ten+six' , 17 : 'ten+seven' , role : 'role' }
] ;
] ;
assert . htmlEqual (
assert . htmlEqual (
target . innerHTML ,
target . innerHTML ,
`
`
< p role = "role" > Quote : new - quote , Wrong Quote : wq4 , 16 : ten + six < / p >
< p role = "role" > Quote : new - quote , Wrong Quote : wq4 , 16 : ten + six , 17 : ten + seven < / p >
`
`
) ;
) ;
}
}