Skip to content

Organise tests #15

@jay-meister

Description

@jay-meister

Currently we have a test called setup test which actually tests addChallenge function

Each function we add to the request object can be made up of:

  • Query building functions that return a string
  • Helper functions shaping the data that comes back from the DB
  • Being added to the request object

Each of these are points that can be tested, in order to keep the functions easy to follow, I want to keep the function names matching the test folders.

tests directory
| - addChallenge
  | - query.test.js
  | - helper.test.js
  | - endpoint.test.js
| - getChallenge
  | - query.test.js
  | - helper.test.js
  | - endpoint.test.js

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions