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