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

Tests for mutation of values #39

Open
eldoy opened this issue Jun 17, 2024 · 0 comments
Open

Tests for mutation of values #39

eldoy opened this issue Jun 17, 2024 · 0 comments
Assignees

Comments

@eldoy
Copy link
Owner

eldoy commented Jun 17, 2024

The query, values and options objects should not mutate. For instance:

var values = { name: 'hello' }
await db('project').create(values)

Here we need tests to make sure values is not being mutated, in case we need to user it further. Same goes for query and options too. parseValues already has support for non-mutation.

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