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

Chore: implement test on article tags #57

Merged
merged 4 commits into from
Apr 8, 2019

Conversation

AnayoOleru
Copy link
Contributor

@AnayoOleru AnayoOleru commented Apr 5, 2019

Description

Implement test on article tags function, to make sure they are handling the errors and returning the right values properly.

Type of change

  • New chore

How Has This Been Tested?

  • unit test

Checklist:

  • add test that fail
  • add validations to the function
  • add test that pass

PT-ID

N/A

Screenshots

Screen Shot 2019-04-05 at 5 54 35 PM

Background

N/A

Questions

N/A

- add validation to tag function
- add test

[Finishes]
@@ -0,0 +1,22 @@
import chai from 'chai';

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();
});
});
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, and done

chai.use(chaiHttp);

describe('Tags', () => {
it('should accept an id and string of article tags', async () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing error: Unexpected token =>

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

Successfully merging this pull request may close these issues.

4 participants