diff --git a/plugins/plugin-annotations/tests/buttons.test.mjs b/plugins/plugin-annotations/tests/buttons.test.mjs index ea2b28a4db3..749142c7501 100644 --- a/plugins/plugin-annotations/tests/buttons.test.mjs +++ b/plugins/plugin-annotations/tests/buttons.test.mjs @@ -11,7 +11,7 @@ pattern.draft().render() describe('Buttons Plugin Test', () => { for (const snippet of ['button', 'buttonhole', 'snap-stud', 'snap-socket']) { it(`Should add the ${snippet} snippet to defs`, () => { - expect(pattern.svg.defs.indexOf(``)).to.not.equal(-1) + expect(pattern.svg.defs.render().indexOf(``)).to.not.equal(-1) }) } diff --git a/plugins/plugin-annotations/tests/logo.test.mjs b/plugins/plugin-annotations/tests/logo.test.mjs index 440a8f3bc9d..9f6ca4102b8 100644 --- a/plugins/plugin-annotations/tests/logo.test.mjs +++ b/plugins/plugin-annotations/tests/logo.test.mjs @@ -9,7 +9,7 @@ describe('Logo Plugin Tests', () => { const Pattern = new Design() const pattern = new Pattern().use(annotationsPlugin) pattern.draft().render() - expect(pattern.svg.defs).to.contain( + expect(pattern.svg.defs.render()).to.contain( '