Skip to content

Refactor code and add unit tests #36

Description

@tanmaymunjal

Planning to refactor this code to separate out the JSON output generation and logic part-out in their own helper functions.

Makes sense to add unit tests for the same, though we are not planning to test the API using DB or API mocks. Only the refactored logic and JSON generation parts are being planned on being testing.

The rest we will prob test out as part of an integration test-suite later on.

This issue was created at https://www.defi-os.com, please login/signup on it to get cash rewards for solving it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions