Skip to content

Commit 49c8789

Browse files
committed
Fix test for no axe results error
1 parent ec64d2e commit 49c8789

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

__tests__/index.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ describe("jest-axe", () => {
218218
const matcherFunction = toHaveNoViolations.toHaveNoViolations;
219219
expect(() => {
220220
matcherFunction({});
221-
}).toThrow("No violations found in aXe results object");
221+
}).toThrow(
222+
"Unexpected aXe results object. No violations property found.\nDid you change the `reporter` in your aXe configuration?"
223+
);
222224
});
223225

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

0 commit comments

Comments
 (0)