Fakultas Ilmu Komputer UI

index.test.tsx 371 Bytes
Newer Older
wulanmantiri's avatar
wulanmantiri committed
1
import React from 'react';
2
import { render } from '@testing-library/react-native';
wulanmantiri's avatar
wulanmantiri committed
3

4
import { ErrorToast } from './styles';
5
import App from '.';
wulanmantiri's avatar
wulanmantiri committed
6

7
8
describe('Application', () => {
  it('renders correctly', () => {
9
    render(<App />);
10
  });
11

12
13
14
  test('error toast renders correctly', () => {
    render(<ErrorToast text1NumberOfLines={2} text2NumberOfLines={2} />);
  });
wulanmantiri's avatar
wulanmantiri committed
15
});