-
Notifications
You must be signed in to change notification settings - Fork 9
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
Test added. #79
base: master
Are you sure you want to change the base?
Test added. #79
Conversation
Conflicts: js/SQLiteHelper.js js/createDatabase.js
add estimate table to DB. add addEstimate() and removeEstimate() functions. add a new link to index.html, so that user can go to estimate page. add addestimate.html and taskestimate.js.
@@ -9,7 +9,7 @@ $ ./runserver <port> | |||
where port is a positive integer > 1023. To run the server on a different | |||
environment, use | |||
|
|||
$ node js/dispatcher.js <node> | |||
$ node js/dispatcher.js <port> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a note saying you must be in the CourseProject/src directory?
I think the comment tests should be a little more robust. Testing just one comment isn't very effective. |
removes the comments corresponding to the given taskid if it exists. | ||
*/ | ||
module.exports.removeComments = function (commentsTaskid, callback) { | ||
queryGetRows("DELETE FROM user WHERE taskid = ?", callback, [commentsTaskid]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure this only deletes comments? It looks like this is deleting an entire row of the user table.
Add removeComments() to SQLitehelper.js
Add test for comments operations.