chore(plugin-grainline): Ported to v3
This commit is contained in:
parent
80e10f3d1a
commit
8f0a69f056
5 changed files with 27 additions and 22 deletions
|
@ -1,13 +1,12 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
import { round, Pattern } from '@freesewing/core'
|
||||
import { plugin } from './dist/index.mjs'
|
||||
|
||||
const expect = chai.expect
|
||||
const round = freesewing.utils.round
|
||||
|
||||
describe('Grainline Plugin Tests', () => {
|
||||
it('Should run the default grainline macro', () => {
|
||||
const pattern = new freesewing.Pattern().use(plugin)
|
||||
const pattern = new Pattern().use(plugin)
|
||||
pattern.parts.test = new pattern.Part()
|
||||
pattern.parts.test.points.from = new pattern.Point(10, 20)
|
||||
pattern.parts.test.points.to = new pattern.Point(10, 230)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue