Skip to content

Commit 9976091

Browse files
committed
cleanup fix lint
1 parent bebc44b commit 9976091

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/@react-spectrum/autocomplete/test/SearchAutocomplete.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe('SearchAutocomplete', function () {
144144
jest.spyOn(window.HTMLElement.prototype, 'clientWidth', 'get').mockImplementation(() => 1000);
145145
jest.spyOn(window.HTMLElement.prototype, 'clientHeight', 'get').mockImplementation(() => 1000);
146146
jest.spyOn(window.HTMLElement.prototype, 'scrollHeight', 'get').mockImplementation(() => 50);
147-
scrollHeight = jest.spyOn(window.HTMLElement.prototype, 'scrollHeight', 'get').mockImplementation(() => 50);
147+
jest.spyOn(window.HTMLElement.prototype, 'scrollHeight', 'get').mockImplementation(() => 50);
148148
window.HTMLElement.prototype.scrollIntoView = jest.fn();
149149
simulateDesktop();
150150
jest.useFakeTimers();

packages/@react-spectrum/card/test/CardView.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,12 @@ describe('CardView', function () {
141141
user = userEvent.setup({delay: null, pointerMap});
142142
jest.spyOn(window.HTMLElement.prototype, 'clientWidth', 'get').mockImplementation(() => mockWidth);
143143
jest.spyOn(window.HTMLElement.prototype, 'clientHeight', 'get').mockImplementation(() => mockHeight);
144-
// jest.spyOn(window.HTMLElement.prototype, 'scrollHeight', 'get').mockImplementation(() => 50);
145144
jest.useFakeTimers();
146145
});
147146

148147
beforeEach(() => {
149148
jest.spyOn(window.HTMLElement.prototype, 'scrollHeight', 'get').mockImplementation(() => 50);
150-
})
149+
});
151150

152151
afterEach(() => {
153152
jest.clearAllMocks();

0 commit comments

Comments
 (0)