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

14 lines
404 B
JavaScript
Raw Normal View History

import chai from 'chai'
import freesewing from '@freesewing/core'
import plugin from '../dist/index.mjs'
const expect = chai.expect
describe('Versionfree Plugin Tests', () => {
const pattern = new freesewing.Pattern().use(plugin)
pattern.draft().render()
it('Should remove version numbers from SVG attributes', () => {
expect(pattern.svg.attributes.get('freesewing')).to.equal(false)
})
})