1
0
Fork 0
freesewing/plugins/plugin-annotations/tests/logo.test.mjs

14 lines
442 B
JavaScript

import chai from 'chai'
import { Design } from '@freesewing/core'
import { annotationsPlugin } from '../src/index.mjs'
const expect = chai.expect
describe('Logo Plugin Tests', () => {
it('Should import style and defs', () => {
const Pattern = new Design({ noCorePlugins: true })
const pattern = new Pattern().use(annotationsPlugin)
pattern.draft().render()
expect(pattern.svg.defs.get('logo')).to.not.equal(false)
})
})