1
0
Fork 0
freesewing/plugins/plugin-logo/tests/plugin.test.mjs
2022-09-15 13:49:55 +02:00

16 lines
454 B
JavaScript

import chai from 'chai'
import { Design } from '@freesewing/core'
import { plugin } from '../src/index.mjs'
const expect = chai.expect
describe('Logo Plugin Tests', () => {
it('Should import style and defs', () => {
const Pattern = new Design()
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"'
)
})
})