1
0
Fork 0

Merge branch 'master' of github.com:freesewing/plugin-bundle

This commit is contained in:
Joost De Cock 2018-12-08 15:41:43 +01:00
parent 23f1dd5e97
commit 4d931d78d5
12 changed files with 4711 additions and 430 deletions

View file

@ -0,0 +1,21 @@
import freesewing from "freesewing";
let expect = require("chai").expect;
let plugin = require("../dist/index.js");
let bundle = [
"cutonfold",
"dimension",
"grainline",
"logo",
"title",
"scalebox"
];
it("Should set the plugins name:version attribute", () => {
let pattern = new freesewing.Pattern().with(plugin);
pattern.render();
for (let plug of bundle) {
expect(
typeof pattern.svg.attributes.get("freesewing:plugin-" + plug)
).to.equal("string");
}
});