Fakultas Ilmu Komputer UI

index.test.tsx 398 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react';
import { render } from '@testing-library/react-native';

import Questionnaire5 from '.';

const mockedNavigate = jest.fn();

jest.mock('@react-navigation/native', () => {
  return {
    useNavigation: () => ({
      navigate: mockedNavigate,
    }),
  };
});

describe('Questionnaire5', () => {
  it('renders correctly', () => {
    render(<Questionnaire5 />);
  });
});