From a6a8a828a6b3255edb4c63f479da07cf3985153d Mon Sep 17 00:00:00 2001 From: Benjamin F Date: Sun, 19 Mar 2023 13:11:36 -0700 Subject: [PATCH] fix(plugin-cutonfold): Update tests to use prefix in variable name --- plugins/plugin-cutonfold/tests/plugin.test.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/plugin-cutonfold/tests/plugin.test.mjs b/plugins/plugin-cutonfold/tests/plugin.test.mjs index d39ae8b045e..b500c3ce7ae 100644 --- a/plugins/plugin-cutonfold/tests/plugin.test.mjs +++ b/plugins/plugin-cutonfold/tests/plugin.test.mjs @@ -23,7 +23,7 @@ describe('Cutonfold Plugin Tests', () => { const Test = new Design({ plugins: [plugin], parts: [part] }) const pattern = new Test() pattern.draft() - const c = pattern.parts[0].test.paths.cutonfold + const c = pattern.parts[0].test.paths.cutonfoldCutonfold expect(c.attributes.get('class')).to.equal('note') expect(c.attributes.get('marker-start')).to.equal('url(#cutonfoldFrom)') expect(c.attributes.get('marker-end')).to.equal('url(#cutonfoldTo)') @@ -62,7 +62,7 @@ describe('Cutonfold Plugin Tests', () => { const Test = new Design({ plugins: [plugin], parts: [part] }) const pattern = new Test() pattern.draft() - const c = pattern.parts[0].test.paths.cutonfold + const c = pattern.parts[0].test.paths.cutonfoldCutonfold expect(c.attributes.get('data-text')).to.equal('cutOnFoldAndGrainline') }) @@ -85,7 +85,7 @@ describe('Cutonfold Plugin Tests', () => { const Test = new Design({ plugins: [plugin], parts: [part] }) const pattern = new Test() pattern.draft() - let c = pattern.parts[0].test.paths.cutonfold + let c = pattern.parts[0].test.paths.cutonfoldCutonfold expect(c.attributes.get('class')).to.equal('note') expect(c.attributes.get('marker-start')).to.equal('url(#cutonfoldFrom)') expect(c.attributes.get('marker-end')).to.equal('url(#cutonfoldTo)') @@ -124,7 +124,7 @@ describe('Cutonfold Plugin Tests', () => { const Test = new Design({ plugins: [plugin], parts: [part] }) const pattern = new Test() pattern.draft() - let c = pattern.parts[0].test.paths.cutonfold + let c = pattern.parts[0].test.paths.cutonfoldCutonfold expect(c.attributes.get('class')).to.equal('note') expect(c.attributes.get('marker-start')).to.equal('url(#cutonfoldFrom)') expect(c.attributes.get('marker-end')).to.equal('url(#cutonfoldTo)')