tada: initial commit
This commit is contained in:
parent
240782d03b
commit
89e1bfd5d3
12 changed files with 10364 additions and 2 deletions
14
packages/plugin-round/tests/round.test.js
Normal file
14
packages/plugin-round/tests/round.test.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
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-round")).to.equal(
|
||||
version
|
||||
);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue