Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ByLabelText): support IE and other legacy browsers (#726)
* fix(ByLabelText): support IE Polyfill HTMLInputElement.labels to support IE and other legacy browsers. Closes #723. * fix: ensure mocks are restored * test: remove unnecessary test cases Co-authored-by: Maxwell Newlands <maxwelln@spotify.com>
- Loading branch information
1 parent
54aebf7
commit f83f8e9
Showing
3 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,5 +37,5 @@ beforeAll(() => { | |
}) | ||
|
||
afterAll(() => { | ||
console.warn.mockRestore() | ||
jest.restoreAllMocks() | ||
}) |