Fakultas Ilmu Komputer UI

Commit a0b7f332 authored by wulanmantiri's avatar wulanmantiri
Browse files

[REFACTOR] Move dummy user report to mocks dir

parent 69da6d7d
...@@ -41,3 +41,23 @@ export const mockUserReportResponse: UserReportResponse = { ...@@ -41,3 +41,23 @@ export const mockUserReportResponse: UserReportResponse = {
}, },
...mockUserReportRequest, ...mockUserReportRequest,
}; };
// TODO: to be adjusted
export const mockUserReportHistory = {
has_not_filled_form: true,
current_week_num: 14,
reports: [
{
...mockUserReportResponse,
week_num: 12,
},
{
...mockUserReportResponse,
week_num: 2,
},
{
...mockUserReportResponse,
week_num: 1,
},
],
};
...@@ -4,7 +4,7 @@ import * as ROUTES from 'constants/routes'; ...@@ -4,7 +4,7 @@ import * as ROUTES from 'constants/routes';
import DietReportPage from '.'; import DietReportPage from '.';
import { dietReportPage1 } from '../../pages/DietReportPage1'; import { dietReportPage1 } from '../../pages/DietReportPage1';
import { mockUserReportResponse } from '__mocks__/userReport'; import { mockUserReportResponse } from 'mocks/userReport';
import { dietReportPage } from '../../pages/types'; import { dietReportPage } from '../../pages/types';
import { dietReportPage2 } from '../../pages/DietReportPage2'; import { dietReportPage2 } from '../../pages/DietReportPage2';
import { dietReportPage3 } from '../../pages/DietReportPage3'; import { dietReportPage3 } from '../../pages/DietReportPage3';
......
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import { render, waitFor, fireEvent } from 'utils/testing'; import { render, waitFor, fireEvent } from 'utils/testing';
import DietReportForNutritionist from '.'; import DietReportForNutritionist from '.';
import { mockUserReportResponse } from '__mocks__/userReport'; import { mockUserReportResponse } from 'mocks/userReport';
import axios from 'axios'; import axios from 'axios';
import * as ROUTES from 'constants/routes'; import * as ROUTES from 'constants/routes';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment