-
Notifications
You must be signed in to change notification settings - Fork 8
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
Chore: implement test on article tags #57
Conversation
- add validation to tag function - add test [Finishes]
tests/tag.test.js
Outdated
@@ -0,0 +1,22 @@ | |||
import chai from 'chai'; |
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.
Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
tagging.saveArticleTags(1); | ||
done(); | ||
}); | ||
}); |
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.
What exactly are you testing in this test suite? @AnayoOleru I can't see any assertions in any of your tests
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.
Noted, and done
- add assertions [Finishes]
chai.use(chaiHttp); | ||
|
||
describe('Tags', () => { | ||
it('should accept an id and string of article tags', async () => { |
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.
Parsing error: Unexpected token =>
- remove commented code [Finishes]
Description
Implement test on article tags function, to make sure they are handling the errors and returning the right values properly.
Type of change
How Has This Been Tested?
Checklist:
PT-ID
N/A
Screenshots
Background
N/A
Questions
N/A