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

17 lines
454 B
JavaScript
Raw Normal View History

import chai from 'chai'
2022-09-07 10:57:47 +02:00
import { Design } from '@freesewing/core'
2022-09-15 13:49:55 +02:00
import { plugin } from '../src/index.mjs'
const expect = chai.expect
describe('Logo Plugin Tests', () => {
it('Should import style and defs', () => {
2022-09-07 10:57:47 +02:00
const Pattern = new Design()
2022-08-28 12:48:34 +02:00
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"'
)
})
})