Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Oct 30, 2023
1 parent 95f680d commit ea69df1
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 69 deletions.
133 changes: 67 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.3.0",
"execa": "^6.0.0",
"expect": "^29.7.0",
"expect": "^28.1.3",
"mocha": "^9.1.3",
"rollup": "^2.61.1"
},
Expand Down
5 changes: 3 additions & 2 deletions test/reporter.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expect } from "expect";
import { chalk } from "../src/cli/util.js";
import SVGLint from "../src/svglint.js";

async function lint(source, rules) {
Expand Down Expand Up @@ -35,13 +36,13 @@ describe("Reporter", function() {
{ elm: { "g > path": false } }
);
expect(results.elm.messages).toMatchObject([{
message: "Element disallowed\n At node \u{1B}[1m<path>\u{1B}[22m (2:17)",
message: `Element disallowed\n At node ${chalk.bold("<path>")} (2:17)`,
reason: "Element disallowed at node <path>",
type: "error",
line: 2,
column: 17
}, {
message: "Element disallowed\n At node \u{1B}[1m<path>\u{1B}[22m (3:17)",
message: `Element disallowed\n At node ${chalk.bold("<path>")} (3:17)`,
reason: "Element disallowed at node <path>",
type: "error",
line: 3,
Expand Down

0 comments on commit ea69df1

Please sign in to comment.