1
0
Fork 0

chore(plugin-annotations): Fix grainline tests after changes

This commit is contained in:
joostdecock 2023-09-08 09:44:41 +02:00
parent a5108b65a6
commit 929632b56f

View file

@ -20,14 +20,15 @@ describe('Grainline Plugin Tests', () => {
},
plugins: [annotationsPlugin],
}
const Pattern = new Design({ parts: [part] })
// Note that we're not loading core plugins but the local plugin
const Pattern = new Design({ parts: [part] }, true)
const pattern = new Pattern()
pattern.draft()
const c = pattern.parts[0].test.paths.grainline
const c = pattern.parts[0].test.paths.__macro_grainline_grainline_line
expect(c.attributes.get('class')).to.equal('note')
expect(c.attributes.get('marker-start')).to.equal('url(#grainlineFrom)')
expect(c.attributes.get('marker-end')).to.equal('url(#grainlineTo)')
expect(c.attributes.get('data-text')).to.equal('grainline')
expect(c.attributes.get('data-text')).to.equal('plugin-annotations:grainline')
expect(c.attributes.get('data-text-class')).to.equal('center fill-note')
expect(c.ops[0].type).to.equal('move')
expect(c.ops[1].type).to.equal('line')