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

13 lines
420 B
JavaScript
Raw Normal View History

import { expect } from 'chai'
2023-03-09 05:20:51 +00:00
import { Design } from '@freesewing/core'
import { annotationsPlugin } from '../src/index.mjs'
2023-03-09 05:20:51 +00:00
describe('Logo Plugin Tests', () => {
it('Should import style and defs', () => {
const Pattern = new Design({ noCorePlugins: true })
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
})
})