Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests - Applications and Messaging Views #94

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Unit Test - add Mock requests, Applications view unit tests
vietle-cgi committed Feb 6, 2024
commit d57801b156ff59ecaf3bc9dd353ae4af157b35a3
1,221 changes: 1,185 additions & 36 deletions frontend/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@
"http-status-codes": "^2.2.0",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"msw": "^2.1.5",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a dev dependency.

"pinia": "^2.1.6",
"regenerator-runtime": "^0.14.0",
"rfdc": "^1.3.0",
243 changes: 0 additions & 243 deletions frontend/test/components/messages/MessagesTab.test.js

This file was deleted.

41 changes: 0 additions & 41 deletions frontend/test/utils/mockResponses.js

This file was deleted.

94 changes: 94 additions & 0 deletions frontend/test/utils/mockResponses/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
export const getLookupInfoResponse = {
requestCategories: [
{
categoryName: 'Intake & Renewal',
categoryId: '1e5bedc2-7377-ee11-8179-000d3a09d132',
},
{
categoryName: 'Reporting',
categoryId: '01839dc9-7377-ee11-8179-000d3a09d132',
},
{
categoryName: 'Account Maintenance',
categoryId: 'a640abcf-7377-ee11-8179-000d3a09d132',
},
{
categoryName: 'Funding Agreement',
categoryId: '1eb0aad5-7377-ee11-8179-000d3a09d132',
},
{
categoryName: 'Payments and Funding',
categoryId: 'aa2ba7e1-7377-ee11-8179-000d3a09d132',
},
{
categoryName: 'Policy Question',
categoryId: '3a2ca7e1-7377-ee11-8179-000d3a09d132',
},
{
categoryName: 'Technical Support',
categoryId: '4f749fe7-7377-ee11-8179-000d3a09d132',
},
{
categoryName: 'Other',
categoryId: '64ce97ed-7377-ee11-8179-000d3a09d132',
},
],
userRoles: [
{
id: 1,
description: 'Admin',
},
{
id: 2,
description: 'Account Management',
},
{
id: 3,
description: 'Financial',
},
{
id: 4,
description: 'Reporting',
},
],
healthAuthorities: [
{
id: 1,
description: 'Fraser Health',
},
{
id: 2,
description: 'Interior Health',
},
{
id: 3,
description: 'Island Health',
},
{
id: 4,
description: 'Northern Health',
},
{
id: 5,
description: 'Vancouver Coastal Health',
},
],
facilityTypes: [
{
id: 1,
description: 'Rent/Lease',
},
{
id: 2,
description: 'Owned With Mortgage',
},
{
id: 3,
description: 'Owned Without Mortgage',
},
{
id: 4,
description: 'Provided Free of Charge',
},
],
}
Loading