Merge branch 'master' of github.com:freesewing/plugin-bundle
This commit is contained in:
parent
23f1dd5e97
commit
4d931d78d5
12 changed files with 4711 additions and 430 deletions
21
packages/plugin-bundle/tests/bundle.test.js
Normal file
21
packages/plugin-bundle/tests/bundle.test.js
Normal 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");
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue