
This wraps up the initial work on a new annotations plugin that replaces other plugins that provide annotations. As a result, the following plugins are now no longer available: - plugin-banner - plugin-bartack - plugin-buttons - plugin-cutonfold - plugin-dimension - plugin-grainine - plugin-logo - plugin-notches - plugin-scalebox - plugin-title The new plugin-annotations package provides all these plugins used to provide. In addition, it also includes the following new macros: - bannerbox - pleat - sewTogether
16 lines
463 B
JavaScript
16 lines
463 B
JavaScript
import chai from 'chai'
|
|
import { Design } from '@freesewing/core'
|
|
import { plugin } from '../src/index.mjs'
|
|
|
|
const expect = chai.expect
|
|
|
|
describe('Logo Plugin Tests', () => {
|
|
it('Should import style and defs', () => {
|
|
const Pattern = new Design()
|
|
const pattern = new Pattern().use(plugin)
|
|
pattern.draft().render()
|
|
expect(pattern.svg.defs).to.contain(
|
|
'<g id="logo" transform="scale(1) translate(-23 -36)"><path class="logo"'
|
|
)
|
|
})
|
|
})
|