Skip to content

Commit 3ec311f

Browse files
authored
Merge pull request #1064 from org2AI/fix/sidebar-menu-test-implicit-this
test(sidebar): type this in submenu rect mock
2 parents f75fbd3 + ff986c3 commit 3ec311f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scaffold/NavigationSidebar/blocks/SidebarSettingsMenuButton.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ describe("SidebarSettingsMenuButton", () => {
253253
const nativeGetBoundingClientRect =
254254
HTMLElement.prototype.getBoundingClientRect;
255255
vi.spyOn(HTMLElement.prototype, "getBoundingClientRect").mockImplementation(
256-
function () {
256+
function (this: HTMLElement) {
257257
if (this === appearanceTrigger) {
258258
return createRect({
259259
top: 400,

0 commit comments

Comments
 (0)