dappros/ethora

View on GitHub
client-reactnative/__tests__/Modals/TransactionModal/TransferModalButton-test.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
import React from 'react';
import renderer from 'react-test-renderer';
import { TransferModalButton } from '../../../src/components/Modals/TransactionModal/TransferModalButton';
import { NativeBaseProvider } from 'native-base';

test("renders correctly", () => {

    const tree = renderer.create(
        <NativeBaseProvider>
            <TransferModalButton
                onPress={() => console.log("press")}
                title='title'
            />
        </NativeBaseProvider>
    ).toJSON();
    expect(tree).toMatchSnapshot();

})