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

testing insert data to database #12

Open
abdhalees opened this issue Dec 17, 2017 · 0 comments
Open

testing insert data to database #12

abdhalees opened this issue Dec 17, 2017 · 0 comments

Comments

@abdhalees
Copy link

Great that you're testing your queries, but your test must be meaningful.
e.g. you could make your insert query return the inserted row by adding Returning command at the end of your query. check this link

t.deepEqual(result,[],'should insert data successfuly')

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

1 participant