Fakultas Ilmu Komputer UI

index.test.tsx 413 Bytes
Newer Older
1
import React from 'react';
2
import { render } from '@testing-library/react-native';
3
4
5

import ChooseWeekForClient from '.';

6
7
8
9
10
11
12
13
14
15
const mockedNavigate = jest.fn();

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

16
17
describe('ChooseWeekForClient', () => {
  it('renders correctly', () => {
18
    render(<ChooseWeekForClient />);
19
20
  });
});