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

Create Cypress tests for api.js file #32

Merged
merged 8 commits into from
Jan 5, 2024
Merged

Conversation

rdpfeifle
Copy link
Owner

@rdpfeifle rdpfeifle commented Jan 4, 2024

Acceptance criteria

  • Added Cypress tests for the fetchProducts() function in api.js to ensure API interactions work as expected.

Additional notes

  • Created 5 tests to comprehensively validate the behavior of the fetchProducts function, covering cases such as a non-empty array, an array of objects, and data types.

Related issue

closes #29

Copy link

netlify bot commented Jan 4, 2024

Deploy Preview for vanilla-js-store-f62b9a ready!

Name Link
🔨 Latest commit 0d9129a
🔍 Latest deploy log https://app.netlify.com/sites/vanilla-js-store-f62b9a/deploys/659886b41787be0008bcb43d
😎 Deploy Preview https://deploy-preview-32--vanilla-js-store-f62b9a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rdpfeifle rdpfeifle self-assigned this Jan 4, 2024
@rdpfeifle rdpfeifle merged commit 05787bc into main Jan 5, 2024
5 checks passed
@rdpfeifle rdpfeifle deleted the create-tests-for-api-file branch January 5, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Cypress Tests for api.js File
1 participant