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

endsWith and startsWith fail on null valued columns #46

Closed
dilsher1 opened this issue Oct 4, 2023 · 1 comment
Closed

endsWith and startsWith fail on null valued columns #46

dilsher1 opened this issue Oct 4, 2023 · 1 comment

Comments

@dilsher1
Copy link
Contributor

dilsher1 commented Oct 4, 2023

The code for these doesn't check if the value of the column is null before running leading to an error:

TypeError: Cannot read properties of null (reading 'indexOf')
at matchItem (/node_modules/prisma-mock/lib/index.js:708:33)

@stijnvanderlaan
Copy link
Contributor

Fixed in v0.10.0

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

No branches or pull requests

2 participants