1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Add required props for AdvancedTab component tests (#7819)

This commit is contained in:
Whymarrh Whitby 2020-01-14 17:45:54 -03:30 committed by GitHub
parent f7aea9597b
commit 8b0c95cbb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {