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 Jan 31, 2025
1 parent f33fb6b commit d15e899
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/moj/components/search-toggle/search-toggle.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const { queryByRole } = require('@testing-library/dom')
const { userEvent } = require('@testing-library/user-event')
const $ = require('jquery')

require('./search-toggle.js')

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

new MOJFrontend.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 d15e899

Please sign in to comment.