1
0
Fork 0

tada: Initial commit

This commit is contained in:
Joost De Cock 2018-12-28 15:08:20 +01:00
parent eb5908f5aa
commit f1f6e4823d
12 changed files with 10343 additions and 1 deletions

View 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-banner")).to.equal(
version
);
});