1
0
Fork 0

fix linting in mirror plugin and tests

This commit is contained in:
Patrick Forringer 2020-05-17 01:13:43 -05:00
parent b6d7c78bab
commit cc8a82e2e8
2 changed files with 5 additions and 7 deletions

View file

@ -86,14 +86,12 @@ export default {
} }
if (clone) { if (clone) {
point = point.clone() point = point.clone()
if (clone) {
if (foundId === null && typeof nameFormat == 'function') { if (foundId === null && typeof nameFormat == 'function') {
this.points[nameFormat(point)] = point this.points[nameFormat(point)] = point
} else { } else {
this.points[`${prefix}${capFirst(foundId)}`] = point this.points[`${prefix}${capFirst(foundId)}`] = point
} }
} }
}
;[point.x, point.y] = mirrorPoint(point) ;[point.x, point.y] = mirrorPoint(point)
point.attributes.set('mirrored', true) point.attributes.set('mirrored', true)
}) })

View file

@ -1,7 +1,7 @@
// These tests haven't been run, stub to fix when plugin testing is added // These tests haven't been run, stub to fix when plugin testing is added
import freesewing from 'freesewing' import freesewing from 'freesewing'
import { version } from '../package.json' import { version } from '../package.json'
import reflect, { lineValues, mirrorGen } from '../src/reflect' // import reflect, { lineValues, mirrorGen } from '../src/reflect'
let chai = require('chai') let chai = require('chai')
let expect = chai.expect let expect = chai.expect
chai.use(require('chai-string')) chai.use(require('chai-string'))