From cea85b194d10ea75e52987d67f20ee55b097de4b Mon Sep 17 00:00:00 2001 From: Maciej Jastrzebski Date: Thu, 10 Nov 2022 11:49:27 +0100 Subject: [PATCH] chore: fix typo --- src/__tests__/to-have-accessibility-state.tsx | 4 ++-- src/to-have-accessibility-state.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__tests__/to-have-accessibility-state.tsx b/src/__tests__/to-have-accessibility-state.tsx index 2dcfd1c..868c2b0 100644 --- a/src/__tests__/to-have-accessibility-state.tsx +++ b/src/__tests__/to-have-accessibility-state.tsx @@ -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}" @@ -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}" diff --git a/src/to-have-accessibility-state.ts b/src/to-have-accessibility-state.ts index 4a57756..3392e2f 100644 --- a/src/to-have-accessibility-state.ts +++ b/src/to-have-accessibility-state.ts @@ -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),