diff --git a/packages/synapse-react-client/src/components/widgets/LoginAwareButton.test.tsx b/packages/synapse-react-client/src/components/widgets/LoginAwareButton.test.tsx
index 6bf0268d3d..6fd993e7b0 100644
--- a/packages/synapse-react-client/src/components/widgets/LoginAwareButton.test.tsx
+++ b/packages/synapse-react-client/src/components/widgets/LoginAwareButton.test.tsx
@@ -6,6 +6,7 @@ import { ApplicationSessionManager } from '../../utils'
import { MemoryRouter } from 'react-router-dom'
import SynapseClient from '../../synapse-client'
import { MOCK_ACCESS_TOKEN } from '../../mocks/MockSynapseContext'
+import { createWrapper } from '../../testutils/TestingLibraryUtils'
const defaultProps: LoginAwareButtonProps = {
children: 'Register for this Challenge',
@@ -18,15 +19,16 @@ const toProps: LoginAwareButtonProps = {
}
function renderComponent(props: LoginAwareButtonProps = defaultProps) {
- return render(, {
- wrapper: ({ children }) => {
- return (
-
- {children}
-
- )
+ return render(
+
+
+
+
+ ,
+ {
+ wrapper: createWrapper(),
},
- })
+ )
}
describe('LoginAwareButton tests', () => {