white_check_mark: Added attribute test
This commit is contained in:
parent
2fda1bf10d
commit
1fb76f39c7
1 changed files with 9 additions and 1 deletions
|
@ -3,13 +3,21 @@ import baseCss from "../src/lib/base.css.js";
|
|||
import notch from "../src/lib/notch";
|
||||
import gridMetric from "../src/lib/grid-metric";
|
||||
import gridImperial from "../src/lib/grid-imperial";
|
||||
import { version, name } from "../package.json";
|
||||
import { version } from "../package.json";
|
||||
import plugin from "../dist/index";
|
||||
|
||||
let chai = require("chai");
|
||||
chai.use(require("chai-string"));
|
||||
let expect = chai.expect;
|
||||
|
||||
it("Should set the plugin name:version attribute", () => {
|
||||
let pattern = new freesewing.Pattern().with(plugin);
|
||||
pattern.render();
|
||||
expect(pattern.svg.attributes.get("freesewing:plugin-theme")).to.equal(
|
||||
version
|
||||
);
|
||||
});
|
||||
|
||||
it("Should load base CSS", () => {
|
||||
let pattern = new freesewing.Pattern().with(plugin);
|
||||
pattern.render();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue