Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Feb 26, 2024
1 parent c50aaa1 commit 4a8f5b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/CustomLint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export function CreateCustomLint(props: CustomLint) {
...options,
});
if (result) return { passCheck: true, data: blame };

let newBlame: number[] | number[][] = [];
if (this.blameMode !== "none") {
newBlame = permutativeBlame(prog, this.palette, this.blameMode);
Expand All @@ -65,7 +64,7 @@ export function CreateCustomLint(props: CustomLint) {
.join(", ");
}

return props.failMessage.replace("{{blame}}", blame);
return props.failMessage.replaceAll("{{blame}}", blame);
}
};
}
4 changes: 2 additions & 2 deletions src/lib/__snapshots__/ColorLint.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ exports[`ColorLint - SequentialOrder 1`] = `"This pal should be ordered by light

exports[`ColorLint - SequentialOrder 2`] = `"This pal should be ordered by lightness if being used as a sequential palette. #ecddff, #bbc3ff may be to blame."`;

exports[`ColorLint - SizeDiscrim (Thin) 1`] = `"This palette has some colors () that are close to each other in perceptual space and will not be resolvable for Thin areas."`;
exports[`ColorLint - SizeDiscrim (Thin) 1`] = `"This palette has some colors () that are close to each other in perceptual space and will not be resolvable for Thin areas. This involves elements like small blocks such as small circles or lines"`;

exports[`ColorLint - SizeDiscrim (Thin) 2`] = `"This palette has some colors (#0084a9 and #009de5) that are close to each other in perceptual space and will not be resolvable for Thin areas."`;
exports[`ColorLint - SizeDiscrim (Thin) 2`] = `"This palette has some colors (#0084a9 and #009de5) that are close to each other in perceptual space and will not be resolvable for Thin areas. This involves elements like small blocks such as small circles or lines"`;

exports[`ColorLint - UglyColors 1`] = `"This palette has some colors (specifically ) that are close to what are known as ugly colors"`;

Expand Down

0 comments on commit 4a8f5b0

Please sign in to comment.