From 929632b56fde952ed40a38e171b64cc399440701 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Fri, 8 Sep 2023 09:44:41 +0200 Subject: [PATCH] chore(plugin-annotations): Fix grainline tests after changes --- plugins/plugin-annotations/tests/grainline.test.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/plugin-annotations/tests/grainline.test.mjs b/plugins/plugin-annotations/tests/grainline.test.mjs index 37e76dd7afd..8abb638205e 100644 --- a/plugins/plugin-annotations/tests/grainline.test.mjs +++ b/plugins/plugin-annotations/tests/grainline.test.mjs @@ -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')