sparkles: Added round plugin
This commit is contained in:
parent
15435dc215
commit
b6420c566d
4 changed files with 26 additions and 14 deletions
12
packages/plugin-bundle/tests/round.test.js
Normal file
12
packages/plugin-bundle/tests/round.test.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import freesewing from "freesewing";
|
||||
import { version } from "../node_modules/@freesewing/plugin-round/package.json";
|
||||
let expect = require("chai").expect;
|
||||
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-round")).to.equal(
|
||||
version
|
||||
);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue