chore(plugin-notches): Added (esm) unit tests. See #408
This commit is contained in:
parent
65ab5a5caf
commit
6cc9afb97b
5 changed files with 40 additions and 4 deletions
15
packages/plugin-notches/tests/plugin.test.mjs
Normal file
15
packages/plugin-notches/tests/plugin.test.mjs
Normal file
|
@ -0,0 +1,15 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
const pattern = new freesewing.Pattern().use(plugin)
|
||||
pattern.draft().render()
|
||||
|
||||
describe('Notches Plugin Test', () => {
|
||||
it(`Should add the snippets to defs`, () => {
|
||||
expect(pattern.svg.defs).to.contain('<g id="notch">')
|
||||
})
|
||||
})
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue