Add required props for AdvancedTab component tests (#7819)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent f7aea9597b
commit 8b0c95cbb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      ui/app/pages/settings/advanced-tab/tests/advanced-tab-component.test.js

@ -8,7 +8,15 @@ import TextField from '../../../../components/ui/text-field'
describe('AdvancedTab Component', () => {
it('should render correctly when threeBoxFeatureFlag', () => {
const root = shallow(
<AdvancedTab />,
<AdvancedTab
ipfsGateway=""
setAutoLogoutTimeLimit={() => {}}
setIpfsGateway={() => {}}
setShowFiatConversionOnTestnetsPreference={() => {}}
setThreeBoxSyncingPermission={() => {}}
threeBoxDisabled
threeBoxSyncingAllowed={false}
/>,
{
context: {
t: s => `_${s}`,
@ -23,7 +31,13 @@ describe('AdvancedTab Component', () => {
const setAutoLogoutTimeLimitSpy = sinon.spy()
const root = shallow(
<AdvancedTab
ipfsGateway=""
setAutoLogoutTimeLimit={setAutoLogoutTimeLimitSpy}
setIpfsGateway={() => {}}
setShowFiatConversionOnTestnetsPreference={() => {}}
setThreeBoxSyncingPermission={() => {}}
threeBoxDisabled
threeBoxSyncingAllowed={false}
/>,
{
context: {

Loading…
Cancel
Save