dappros/ethora

View on GitHub
client-reactnative/__tests__/Chat/AudioSendButton-test.tsx

Summary

Maintainability
A
3 hrs
Test Coverage
import React from 'react';
import renderer from 'react-test-renderer';
import { AudioSendButton } from '../../src/components/Chat/AudioSendButton';

test("renders correctly", ()=>{
 
   const tree = renderer.create(
    <AudioSendButton
    onPressIn={()=>console.log("Press in")}
    onPressOut={()=>console.log("Press out")}
    recording={true}
    />
   ).toJSON();
   expect(tree).toMatchSnapshot();
 
})