✅ 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 parts = this.sampleParts();
|
||||
let run = 0;
|
||||
let runs = models.length;
|
||||
let runs = Object.keys(models).length;
|
||||
for (let l in models) {
|
||||
run++;
|
||||
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.b.paths.test_2.ops[1].to.x).to.equal(10);
|
||||
expect(pattern.parts.a.paths.test_1.attributes.get("class")).to.equal(
|
||||
"sample sample-1 sample-focus"
|
||||
"sample-focus"
|
||||
);
|
||||
expect(
|
||||
pattern.parts.b.paths.test_2.attributes.get("class")
|
||||
).to.equalIgnoreSpaces("sample sample-2");
|
||||
pattern.parts.b.paths.test_2.attributes.get("style")
|
||||
).to.equalIgnoreSpaces("stroke: hsl(165, 100%, 35%);");
|
||||
});
|
||||
|
||||
it("Should register a hook via on", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue