2023-03-09 05:20:51 +00:00
|
|
|
import chai from 'chai'
|
|
|
|
import { Design } from '@freesewing/core'
|
2023-04-10 15:20:32 +02:00
|
|
|
import { annotationsPlugin } from '../src/index.mjs'
|
2023-03-09 05:20:51 +00:00
|
|
|
|
|
|
|
const expect = chai.expect
|
|
|
|
|
|
|
|
describe('Logo Plugin Tests', () => {
|
|
|
|
it('Should import style and defs', () => {
|
2023-09-08 10:50:03 +02:00
|
|
|
const Pattern = new Design({ noCorePlugins: true })
|
2023-04-10 15:20:32 +02:00
|
|
|
const pattern = new Pattern().use(annotationsPlugin)
|
2023-03-09 05:20:51 +00:00
|
|
|
pattern.draft().render()
|
2023-04-21 03:48:37 +00:00
|
|
|
expect(pattern.svg.defs.get('logo')).to.not.equal(false)
|
2023-03-09 05:20:51 +00:00
|
|
|
})
|
|
|
|
})
|