chore(plugin-logo): Ported to v3
This commit is contained in:
parent
f8c2b61e00
commit
717a2732d6
7 changed files with 25 additions and 27 deletions
|
@ -1,12 +1,12 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
import { Pattern } from '@freesewing/core'
|
||||
import { plugin } from '../dist/index.mjs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
describe('Logo Plugin Tests', () => {
|
||||
it('Should import style and defs', () => {
|
||||
const pattern = new freesewing.Pattern().use(plugin)
|
||||
const pattern = new Pattern().use(plugin)
|
||||
pattern.draft().render()
|
||||
expect(pattern.svg.defs).to.contain(
|
||||
'<g id="logo" transform="translate(-23 -36)"><path class="logo"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue