Fakultas Ilmu Komputer UI

index.test.tsx 413 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 ChooseWeekForClient from '.';

const mockedNavigate = jest.fn();

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

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