fix(types): toHaveAttribute had its signature backwards (#8314)

This commit is contained in:
Joel Einbinder 2021-08-19 12:55:36 -04:00 committed by GitHub
parent ddcdb6d413
commit 5357b2f280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ declare global {
/**
* Asserts element's attributes `name` matches expected value.
*/
toHaveAttribute(expected: string | RegExp, name: string, options?: { timeout?: number }): Promise<R>;
toHaveAttribute(name: string, expected: string | RegExp, options?: { timeout?: number }): Promise<R>;
/**
* Asserts that DOM node has a given CSS class.