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

Adding more tests and bug fixes #1163

Merged
merged 14 commits into from
Aug 21, 2021
Merged

Adding more tests and bug fixes #1163

merged 14 commits into from
Aug 21, 2021

Conversation

amanpro30
Copy link
Contributor

@amanpro30 amanpro30 commented Aug 16, 2021

Description

Increased the test coverage to more React components, made little changes to the documentation, and fixed a small DB issue.

Reviewers

@viyatb @7a @sharmamohit123 @Ashrith-Shetty

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other

Checklist:

  • My code follows the code style (modified PEP8) of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

const options = {
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
Authorization: "Bearer " + localStorage.getItem("token")
Copy link
Member

Choose a reason for hiding this comment

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

string interpolation using backticks might be cleaner

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

Copy link
Member

@viyatb viyatb left a comment

Choose a reason for hiding this comment

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

is it possible to refactor the api calls so that

  const options = {
    headers: {
      "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
      Authorization: "Bearer " + localStorage.getItem("token")
    }
  };
  const request = new Request(requestURL, options);

block is not duplicated everywhere?

@viyatb viyatb merged commit f71de21 into owtf:develop Aug 21, 2021
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.

3 participants