[ ] A stub of the Knex.js queryBuilder is used in tests for most of the controllers, and is a source of duplication. A single, comprehensive stub of the queryBuilder should be added in ./test/fixtures and then used in every test for a query modifier function.
[ ] Many of the test cases are used widely across the testing code. Using Ava macros in a new directory ./test/macros would reduce this duplication while standardizing assertion messages across the testing code.
queryBuilder
is used in tests for most of the controllers, and is a source of duplication. A single, comprehensive stub of thequeryBuilder
should be added in./test/fixtures
and then used in every test for a query modifier function../test/macros
would reduce this duplication while standardizing assertion messages across the testing code.