Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjastrzebski committed Nov 10, 2022
1 parent aa8922a commit cea85b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/to-have-accessibility-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test('.toHaveAccessibilityState to handle explicit state', () => {
.toThrowErrorMatchingInlineSnapshot(`
"expect(element).toHaveAccessibilityState({"disabled": false})
Expected the element to have acessibility state:
Expected the element to have accessibility state:
{"disabled": false}
Received element with implied accessibility state:
{"busy": false, "disabled": true, "selected": false}"
Expand All @@ -36,7 +36,7 @@ test('.toHaveAccessibilityState to handle explicit state', () => {
.toThrowErrorMatchingInlineSnapshot(`
"expect(element).not.toHaveAccessibilityState({"selected": true})
Expected the element not to have acessibility state:
Expected the element not to have accessibility state:
{"selected": true}
Received element with implied accessibility state:
{"busy": false, "disabled": false, "selected": true}"
Expand Down
2 changes: 1 addition & 1 deletion src/to-have-accessibility-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function toHaveAccessibilityState(
);
return getMessage(
matcher,
`Expected the element ${this.isNot ? 'not to' : 'to'} have acessibility state`,
`Expected the element ${this.isNot ? 'not to' : 'to'} have accessibility state`,
stringify(expectedState),
'Received element with implied accessibility state',
stringify(impliedState),
Expand Down

0 comments on commit cea85b1

Please sign in to comment.