✅ Updating tests
This commit is contained in:
parent
c376510367
commit
56542e5cda
2 changed files with 4 additions and 4 deletions
|
@ -232,7 +232,7 @@ Pattern.prototype.sampleModels = function(models, focus = false) {
|
||||||
let anchors = {};
|
let anchors = {};
|
||||||
let parts = this.sampleParts();
|
let parts = this.sampleParts();
|
||||||
let run = 0;
|
let run = 0;
|
||||||
let runs = models.length;
|
let runs = Object.keys(models).length;
|
||||||
for (let l in models) {
|
for (let l in models) {
|
||||||
run++;
|
run++;
|
||||||
this.settings.measurements = models[l];
|
this.settings.measurements = models[l];
|
||||||
|
|
|
@ -168,11 +168,11 @@ it("Should sample models with focus", () => {
|
||||||
expect(pattern.parts.a.paths.test_1.render).to.equal(true);
|
expect(pattern.parts.a.paths.test_1.render).to.equal(true);
|
||||||
expect(pattern.parts.b.paths.test_2.ops[1].to.x).to.equal(10);
|
expect(pattern.parts.b.paths.test_2.ops[1].to.x).to.equal(10);
|
||||||
expect(pattern.parts.a.paths.test_1.attributes.get("class")).to.equal(
|
expect(pattern.parts.a.paths.test_1.attributes.get("class")).to.equal(
|
||||||
"sample sample-1 sample-focus"
|
"sample-focus"
|
||||||
);
|
);
|
||||||
expect(
|
expect(
|
||||||
pattern.parts.b.paths.test_2.attributes.get("class")
|
pattern.parts.b.paths.test_2.attributes.get("style")
|
||||||
).to.equalIgnoreSpaces("sample sample-2");
|
).to.equalIgnoreSpaces("stroke: hsl(165, 100%, 35%);");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Should register a hook via on", () => {
|
it("Should register a hook via on", () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue