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

fix(mocks): Edit SPA mock item ID format #1071

Merged
merged 3 commits into from
Jan 28, 2025
Merged

fix(mocks): Edit SPA mock item ID format #1071

merged 3 commits into from
Jan 28, 2025

Conversation

tiffanyvu
Copy link
Collaborator

🎫 Linked Ticket

Ticket to close

💬 Description / Notes

In my split spa ticket, I would like to use the mock Medicaid SPA item in my unit tests. However when using it I found that the mock item has the wrong ID format.

🛠 Changes

Another mock data item has been added to represent a Medicaid SPA item. The authority of the previous mock item has been updated to match the ID based on its format. Any tests that were referring to this ID were modified accordingly.

📸 Screenshots / Demo

@tiffanyvu tiffanyvu requested review from thetif and thwalker6 January 27, 2025 23:51
@@ -25,7 +25,7 @@ describe("getPackageActions test", () => {
});

it("should return empty actions for package without actions", async () => {
const actions = await getPackageActions(TEST_ITEM_ID);
const actions = await getPackageActions(TEST_SPA_ITEM_ID);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed this because the SPA item had actions apparently?

Copy link
Contributor

github-actions bot commented Jan 27, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 85.76% 4020 / 4687
🔵 Statements 85.19% 4380 / 5141
🔵 Functions 76.79% 1188 / 1547
🔵 Branches 70.03% 1940 / 2770
File CoverageNo changed files found.
Generated in workflow #1735 for commit 0111148 by the Vitest Coverage Report Action

Copy link
Collaborator

@thetif thetif left a comment

Choose a reason for hiding this comment

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

lgtm

@tiffanyvu tiffanyvu merged commit 78e253c into main Jan 28, 2025
18 checks passed
@tiffanyvu tiffanyvu deleted the fix-mockitems branch January 28, 2025 16:49
benjaminpaige pushed a commit that referenced this pull request Jan 28, 2025
* add med spa mock item

* fix tests

* fix test
RanyeM pushed a commit that referenced this pull request Jan 28, 2025
* add med spa mock item

* fix tests

* fix test
Copy link
Contributor

🎉 This PR is included in version 1.5.0-val.116 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants