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

17 lines
494 B
JavaScript
Raw Normal View History

2023-03-09 05:20:51 +00:00
import chai from 'chai'
import { Design } from '@freesewing/core'
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', () => {
const Pattern = new Design()
const pattern = new Pattern().use(annotationsPlugin)
2023-03-09 05:20:51 +00:00
pattern.draft().render()
2023-04-20 18:55:07 +00:00
expect(pattern.svg.defs.render()).to.contain(
2023-03-09 05:20:51 +00:00
'<g id="logo" transform="scale(1) translate(-23 -36)"><path class="logo"'
)
})
})