From 49f560558423aec91fb3afe9b39464c2f60fbfb1 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Tue, 7 Sep 2021 09:55:49 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> --- src/queries/alt-text.ts | 2 +- src/queries/placeholder-text.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/queries/alt-text.ts b/src/queries/alt-text.ts index 2529dd6a..a7c84031 100644 --- a/src/queries/alt-text.ts +++ b/src/queries/alt-text.ts @@ -25,7 +25,7 @@ const getMissingError: GetErrorFunction<[unknown]> = (c, alt) => const queryAllByAltTextWithSuggestions = wrapAllByQueryWithSuggestion< // @ts-expect-error -- See `wrapAllByQueryWithSuggestion` Argument constraint comment - [labelText: Matcher, options?: SelectorMatcherOptions] + [altText: Matcher, options?: SelectorMatcherOptions] >(queryAllByAltText, queryAllByAltText.name, 'queryAll') const [ queryByAltText, diff --git a/src/queries/placeholder-text.ts b/src/queries/placeholder-text.ts index 29134e17..42559954 100644 --- a/src/queries/placeholder-text.ts +++ b/src/queries/placeholder-text.ts @@ -14,7 +14,7 @@ const getMissingError: GetErrorFunction<[unknown]> = (c, text) => const queryAllByPlaceholderTextWithSuggestions = wrapAllByQueryWithSuggestion< // @ts-expect-error -- See `wrapAllByQueryWithSuggestion` Argument constraint comment - [placeholder: Matcher, options?: MatcherOptions] + [placeholderText: Matcher, options?: MatcherOptions] >(queryAllByPlaceholderText, queryAllByPlaceholderText.name, 'queryAll') const [