1
0
Fork 0

chore(plugin-grainline): Ported to v3

This commit is contained in:
Joost De Cock 2022-08-28 12:40:19 +02:00
parent 80e10f3d1a
commit 8f0a69f056
5 changed files with 27 additions and 22 deletions

View file

@ -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)