-
Notifications
You must be signed in to change notification settings - Fork 0
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
Open
vietle-cgi
wants to merge
12
commits into
main
Choose a base branch
from
viet-unit-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b98c506
add MessageView unit test - initial commit
vietle-cgi 489aa61
Merge branch 'main' into viet-unit-tests
vietle-cgi b036304
Merge branch 'main' into viet-unit-tests
vietle-cgi 73a468f
unit test - add MessagingView unit test
vietle-cgi 3f46f41
Merge branch 'ofmcc-853-application-navbar' into viet-unit-tests
vietle-cgi 2f8f0c4
unit test - add ApplicationsView
vietle-cgi f7977ad
Merge branch 'main' into viet-unit-tests
vietle-cgi 0caa598
unit testing - add utils folder for mock response
vietle-cgi 5f0fefd
merge main
vietle-cgi d57801b
Unit Test - add Mock requests, Applications view unit tests
vietle-cgi 0958c0d
merge main
vietle-cgi 44ebe41
clean up
vietle-cgi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
export const getApplicationsResponse = [ | ||
{ | ||
applicationId: '128b9ba9-be9e-ee11-a569-000d3a09d132', | ||
referenceNumber: 'APP-23000066', | ||
submittedDate: null, | ||
ministryLastUpdated: '2023-12-22T20:40:48Z', | ||
providerLastUpdated: '2023-12-22T20:35:45Z', | ||
facilityId: 'c9ecef6c-437d-ee11-8179-000d3a09d132', | ||
facilityName: 'Test OFM - Facility Number 1', | ||
statusCode: 1, | ||
stateCode: 0, | ||
status: 'Draft', | ||
latestActivity: '2023-12-22T20:40:48.000Z', | ||
}, | ||
{ | ||
applicationId: 'c8609cc5-0fa1-ee11-a569-000d3a09d499', | ||
referenceNumber: 'APP-23000070', | ||
submittedDate: null, | ||
ministryLastUpdated: null, | ||
providerLastUpdated: '2023-12-22T21:19:21Z', | ||
facilityId: 'c9ecef6c-437d-ee11-8179-000d3a09d132', | ||
facilityName: 'Test OFM - Facility Number 1', | ||
statusCode: 1, | ||
stateCode: 0, | ||
status: 'Draft', | ||
latestActivity: '2023-12-22T21:19:21.000Z', | ||
}, | ||
{ | ||
applicationId: 'b2b7f374-2995-ee11-be37-000d3a09d4d4', | ||
referenceNumber: 'APP-23000031', | ||
submittedDate: '2023-12-19T18:07:38Z', | ||
ministryLastUpdated: '2023-12-19T18:07:38Z', | ||
providerLastUpdated: null, | ||
facilityId: 'c9ecef6c-437d-ee11-8179-000d3a09d132', | ||
facilityName: 'Test OFM - Facility Number 1', | ||
statusCode: 3, | ||
stateCode: 0, | ||
status: 'Submitted', | ||
latestActivity: '2023-12-19T18:07:38.000Z', | ||
}, | ||
] | ||
|
||
export const getApplicationResponse = { | ||
applicationId: 'b2b7f374-2995-ee11-be37-000d3a09d4d4', | ||
referenceNumber: 'APP-23000031', | ||
submittedDate: null, | ||
ministryLastUpdated: null, | ||
providerLastUpdated: '2024-01-31T20:00:58Z', | ||
facilityId: 'c9ecef6c-437d-ee11-8179-000d3a09d132', | ||
facilityName: 'Test OFM - Facility Number 1', | ||
statusCode: 1, | ||
stateCode: 0, | ||
status: 'Draft', | ||
staffingInfantECEducatorFullTime: 1, | ||
staffingInfantECEducatorPartTime: 2, | ||
staffingECEducatorFullTime: 3, | ||
staffingECEducatorPartTime: 4, | ||
staffingECEducatorAssistantFullTime: 5, | ||
staffingECEducatorAssistantPartTime: 6, | ||
staffingResponsibleAdultFullTime: 7, | ||
staffingResponsibleAdultPartTime: 8, | ||
primaryContactId: '7e35f2ba-9fb1-ee11-a569-000d3a09d4d4', | ||
secondaryContactId: 'b4cc209f-edab-ee11-a569-000d3a09d699', | ||
providerType: 1, | ||
ownership: 2, | ||
facilityType: 1, | ||
insuranceCost: 0.3, | ||
upkeepLabourCost: 4.13, | ||
suppliesCost: 6.11, | ||
utilitiesCost: 1.44, | ||
maintenanceRepairsCost: 5.12, | ||
furnitureEquipmentsCost: 1.46, | ||
totalYearlyOperatingCosts: 18.56, | ||
rentLeaseCost: 0, | ||
mortgageCost: 0, | ||
propertyTax: 0, | ||
strataFee: 0, | ||
applicableFee: 0, | ||
totalYearlyFacilityCosts: 0, | ||
latestActivity: '2024-01-31T20:00:58.000Z', | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.