fix linting in mirror plugin and tests
This commit is contained in:
parent
b6d7c78bab
commit
cc8a82e2e8
2 changed files with 5 additions and 7 deletions
|
@ -86,14 +86,12 @@ 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
|
||||
}
|
||||
}
|
||||
}
|
||||
;[point.x, point.y] = mirrorPoint(point)
|
||||
point.attributes.set('mirrored', true)
|
||||
})
|
||||
|
|
|
@ -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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue