Skip to content

Commit

Permalink
refactor: remove jQuery from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Feb 24, 2025
1 parent 52ac838 commit 2cbd074
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/moj/components/search-toggle/search-toggle.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { queryByRole } from '@testing-library/dom'
import { userEvent } from '@testing-library/user-event'
import $ from 'jquery'

import { SearchToggle } from './search-toggle.mjs'

Expand Down Expand Up @@ -56,11 +55,11 @@ describe('search toggle', () => {

new SearchToggle({
toggleButton: {
container: $(buttonContainer),
container: buttonContainer,
text: component.getAttribute('data-moj-search-toggle-text')
},
search: {
container: $(searchContainer)
container: searchContainer
}
})
})
Expand Down

0 comments on commit 2cbd074

Please sign in to comment.