tada: Initial commit
This commit is contained in:
parent
90f088c6d0
commit
89de4d4499
14 changed files with 10335 additions and 1 deletions
14
packages/plugin-buttons/tests/buttons.test.js
Normal file
14
packages/plugin-buttons/tests/buttons.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();
|
||||
pattern.use(plugin).draft().render();
|
||||
expect(pattern.svg.attributes.get("freesewing:plugin-buttons")).to.equal(
|
||||
version
|
||||
);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue