diff --git a/test/mocks/server.js b/test/mocks/server.js index d459ce37..875c9011 100644 --- a/test/mocks/server.js +++ b/test/mocks/server.js @@ -3,8 +3,7 @@ require('dotenv').config(); const express = require('express'); const mockStore = require('./store'); -const capacityRouter = require('../../src/routes/capacity'); -const quoteRouter = require('../../src/routes/quote'); +const { capacityRouter, quoteRouter, reindexRouter, pricingRouter } = require('../../src/routes'); const main = () => { // state @@ -26,6 +25,8 @@ const main = () => { // initiate routes app.use('/v2', capacityRouter); app.use('/v2', quoteRouter); + app.use('/v2', reindexRouter); + app.use('/v2', pricingRouter); return app; }; diff --git a/test/unit/index.js b/test/unit/index.js index fe81b7b7..f8f3f1eb 100644 --- a/test/unit/index.js +++ b/test/unit/index.js @@ -6,4 +6,5 @@ describe('unit tests', function () { require('./calculateOptimalPoolAllocation'); require('./cache'); require('./synchronizer'); + require('./helpers'); }); diff --git a/test/unit/routes/index.js b/test/unit/routes/index.js index de55b2d6..39135772 100644 --- a/test/unit/routes/index.js +++ b/test/unit/routes/index.js @@ -1,4 +1,5 @@ describe('routes', function () { require('./quote'); require('./capacity'); + require('./pricing'); });