From 0213c92b0f674d6918947e3761e618a8ea467cde Mon Sep 17 00:00:00 2001 From: Wouter van Wageningen Date: Thu, 20 Apr 2023 18:55:07 +0000 Subject: [PATCH] Test fixes --- plugins/plugin-annotations/tests/buttons.test.mjs | 2 +- plugins/plugin-annotations/tests/logo.test.mjs | 2 +- plugins/plugin-annotations/tests/notches.test.mjs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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( '