dappros/ethora

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

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import renderer from 'react-test-renderer';
import { MetaNavigation } from '../../src/components/Chat/MetaNavigation';

test("renders correctly", ()=>{
 
   const tree = renderer.create(
    <MetaNavigation
    chatId='chatid'
    onClose={()=>console.log("close")}
    open={true}
    />
   ).toJSON();
   expect(tree).toMatchSnapshot();
 
})