initial creation of mirror plugin
This commit is contained in:
parent
7e9a1803e2
commit
a830fda199
7 changed files with 300 additions and 0 deletions
12
packages/plugin-mirror/tests/mirror.test.js
Normal file
12
packages/plugin-mirror/tests/mirror.test.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import freesewing from 'freesewing'
|
||||
import { version } from '../package.json'
|
||||
let chai = require('chai')
|
||||
let expect = chai.expect
|
||||
chai.use(require('chai-string'))
|
||||
let plugin = require('../dist/index.js')
|
||||
|
||||
it('Should set the plugin name:version attribute', () => {
|
||||
let pattern = new freesewing.Pattern().with(plugin)
|
||||
pattern.render()
|
||||
expect(pattern.svg.attributes.get('freesewing:plugin-mirror')).to.equal(version)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue