From 5357b2f28054182f5b1ff28def598f6561dcc082 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Thu, 19 Aug 2021 12:55:36 -0400 Subject: [PATCH] fix(types): toHaveAttribute had its signature backwards (#8314) --- types/testExpect.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/testExpect.d.ts b/types/testExpect.d.ts index 5dbd04d0c0..3003447e10 100644 --- a/types/testExpect.d.ts +++ b/types/testExpect.d.ts @@ -117,7 +117,7 @@ declare global { /** * Asserts element's attributes `name` matches expected value. */ - toHaveAttribute(expected: string | RegExp, name: string, options?: { timeout?: number }): Promise; + toHaveAttribute(name: string, expected: string | RegExp, options?: { timeout?: number }): Promise; /** * Asserts that DOM node has a given CSS class.