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: unexpected error when removing uploaded molecule file #158

Merged
merged 2 commits into from
May 22, 2024

Conversation

dmijatovic
Copy link
Collaborator

Fix: error when removing uploaded molecule file

The validation of passed file values is extend to check on undefined and null entries in the molecules array.

Copy link

netlify bot commented May 16, 2024

Deploy Preview for i-vresse-workflow-builder ready!

Name Link
🔨 Latest commit 30d68da
🔍 Latest deploy log https://app.netlify.com/sites/i-vresse-workflow-builder/deploys/664dfb6a21c7d90008fefc52
😎 Deploy Preview https://deploy-preview-158--i-vresse-workflow-builder.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.

Copy link
Member

@sverhoeven sverhoeven left a comment

Choose a reason for hiding this comment

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

Tested the netlify and cancelling file now behaves as expected.

The test could be improved by

  • Make it easier to read by using a mockGlobalSchema with only the molecules property.
  • 2 use cases (undefined and null) are tested in same test, would be nice to use 2 tests or a parameterized test so each use case can fail/succeed independently of each other

@dmijatovic dmijatovic merged commit 295878d into main May 22, 2024
5 checks passed
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.

2 participants