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

13 lines
405 B
JavaScript
Raw Permalink Normal View History

import { expect } 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'
describe('Versionfree Plugin Tests', () => {
2022-09-07 10:57:47 +02:00
const Pattern = new Design()
const pattern = new Pattern().use(plugin)
pattern.draft().render()
it('Should remove version numbers from SVG attributes', () => {
expect(pattern.svg.attributes.get('freesewing')).to.equal(false)
})
})