Skip to content

Commit

Permalink
Fix test for no axe results error
Browse files Browse the repository at this point in the history
  • Loading branch information
zcolleyz committed Mar 23, 2023
1 parent ec64d2e commit 49c8789
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ describe("jest-axe", () => {
const matcherFunction = toHaveNoViolations.toHaveNoViolations;
expect(() => {
matcherFunction({});
}).toThrow("No violations found in aXe results object");
}).toThrow(
"Unexpected aXe results object. No violations property found.\nDid you change the `reporter` in your aXe configuration?"
);
});

it("returns pass as true when no violations are present", () => {
Expand Down

0 comments on commit 49c8789

Please sign in to comment.