Skip to content

Commit

Permalink
Update TokenRequiredModal.spec.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
RulaKhaled committed Sep 23, 2024
1 parent 83dd7ae commit 66267d1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ const wrapper: React.FC<React.PropsWithChildren> = ({ children }) => (
)

describe('TokenRequiredModal', () => {
function setup(isLoading = false) {
function setup() {
return {
user: userEvent.setup(),
closeModal: jest.fn(),
setTokenRequired: jest.fn(),
isLoading,
}
}

Expand Down Expand Up @@ -127,7 +126,7 @@ describe('TokenRequiredModal', () => {
})

it('renders loading state on require token button', async () => {
const { closeModal, setTokenRequired } = setup(true)
const { closeModal, setTokenRequired } = setup()

render(
<TokenRequiredModal
Expand Down

0 comments on commit 66267d1

Please sign in to comment.