App.js (464B)
1 import 'react-native'; 2 import React from 'react'; 3 import App from '../src/usecase/App'; 4 5 import { render } from '../src/test-utils'; 6 7 it('renders correctly', () => { 8 const tree = render(<App />, { 9 initialState: { 10 buffers: { 11 1: { 12 id: '1', 13 full_name: 'irc.freenode.#weechat', 14 short_name: '#weechat', 15 local_variables: { type: 'channel' } 16 } 17 } 18 } 19 }); 20 21 expect(tree).toMatchSnapshot(); 22 });