Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix test-suite to work with node master #9688

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/lib/testers/rule-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe("RuleTester", () => {
{ code: "var foo = bar;", errors: [{ message: "Bad error message." }] }
]
});
}, /Bad var\..*==.*Bad error message/);
}, /Bad var\.((.*==)|(.*strictEqual)).*Bad error message/);
});

it("should throw an error when the error message regex does not match", () => {
Expand Down Expand Up @@ -167,7 +167,7 @@ describe("RuleTester", () => {
{ code: "var foo = bar;", errors: ["Bad error message."] }
]
});
}, /Bad var\..*==.*Bad error message/);
}, /Bad var\.((.*==)|(.*strictEqual)).*Bad error message/);
});

it("should throw an error when the error is a string and it does not match error message", () => {
Expand Down