1
0
Fork 0

fix(plugin-banner): Updated tests to recent changes

This commit is contained in:
Joost De Cock 2022-01-18 17:43:02 +01:00
parent fb380ec49a
commit 42a6fcccba

View file

@ -24,7 +24,7 @@ describe('Banner Plugin Tests', () => {
})
let c = pattern.parts.test.paths.example
expect(c.attributes.get('data-text')).to.equal(
'f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o          f o o         '
'            foo            foo            foo            foo            foo            foo            foo            foo            foo            foo            '
)
expect(c.attributes.get('data-text-class')).to.equal('center')
expect(c.attributes.get('data-text-dy')).to.equal('-1')
@ -44,7 +44,7 @@ describe('Banner Plugin Tests', () => {
repeat: 2,
})
let c = pattern.parts.test.paths.example2
expect(c.attributes.get('data-text')).to.equal('f o o    f o o   ')
expect(c.attributes.get('data-text')).to.equal('  foo  foo  ')
})
it('Number of repetitions should be configurable', () => {
@ -62,7 +62,7 @@ describe('Banner Plugin Tests', () => {
})
let c = pattern.parts.test.paths.example3
expect(c.attributes.get('data-text')).to.equal(
'f o o   f o o   f o o   f o o  '
' foo foo foo foo '
)
})
})