diff --git a/packages/plugin-mirror/src/index.js b/packages/plugin-mirror/src/index.js index 59232b9ea01..85fd97af5a1 100644 --- a/packages/plugin-mirror/src/index.js +++ b/packages/plugin-mirror/src/index.js @@ -86,12 +86,10 @@ export default { } if (clone) { point = point.clone() - if (clone) { - if (foundId === null && typeof nameFormat == 'function') { - this.points[nameFormat(point)] = point - } else { - this.points[`${prefix}${capFirst(foundId)}`] = point - } + if (foundId === null && typeof nameFormat == 'function') { + this.points[nameFormat(point)] = point + } else { + this.points[`${prefix}${capFirst(foundId)}`] = point } } ;[point.x, point.y] = mirrorPoint(point) diff --git a/packages/plugin-mirror/tests/mirror.test.js b/packages/plugin-mirror/tests/mirror.test.js index 85017df0141..efd87de6c9f 100644 --- a/packages/plugin-mirror/tests/mirror.test.js +++ b/packages/plugin-mirror/tests/mirror.test.js @@ -1,7 +1,7 @@ // These tests haven't been run, stub to fix when plugin testing is added import freesewing from 'freesewing' import { version } from '../package.json' -import reflect, { lineValues, mirrorGen } from '../src/reflect' +// import reflect, { lineValues, mirrorGen } from '../src/reflect' let chai = require('chai') let expect = chai.expect chai.use(require('chai-string'))