Skip to content

Create tests for the new APIs #65

@francisli

Description

@francisli

The codebase now has a test for the Resources API- it's in test/routes/api/resources.js.

To run tests, log in to a running server container and perform these set up steps:

$ sequelize db:create --env=test
$ sequelize db:migrate --env=test

These commands create and migrate the TEST database. Then, to run ALL the tests, you can run:

$ npm test

To run a specific test file, you can specify it as an argument to the mocha test runner command:

$ mocha test/routes/api/resources.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions