Skip to content

Commit

Permalink
update ui/ToggleElement
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov committed Sep 20, 2024
1 parent e82ef28 commit 4315841
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import userEvent from '@testing-library/user-event'

import { ToggleElement } from './ToggleElement'

jest.spyOn(window.localStorage.__proto__, 'setItem')
window.localStorage.__proto__.setItem = jest.fn()
vi.spyOn(window.localStorage.__proto__, 'setItem')
window.localStorage.__proto__.setItem = vi.fn()

describe('ToggleElement', () => {
function setup() {
Expand Down

0 comments on commit 4315841

Please sign in to comment.