Skip to content

Commit

Permalink
Increasing coverage
Browse files Browse the repository at this point in the history
Related to #167
  • Loading branch information
algarfer committed May 1, 2024
1 parent 5448b55 commit f19e548
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ app.use("/admin", adminMiddleware)
// Routes
require("./routes/gatewayRoutes")(app)
require("./routes/jordiRoutes")(app, axios)
require("./routes/usersRoutes")(app, axios, authTokenMiddleware)
require("./routes/authRoutes")(app, axios)
require("./routes/historyRoutes")(app, axios, authTokenMiddleware)
require("./routes/gatewayUsersRoutes")(app, axios, authTokenMiddleware)
require("./routes/gatewayAuthRoutes")(app, axios)
require("./routes/gatewayHistoryRoutes")(app, axios, authTokenMiddleware)

// Open API
const openapiPath='./GatewayAPI.yaml'
Expand Down
2 changes: 1 addition & 1 deletion gatewayservice/routes/authRoutes.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const request = require('supertest');
const express = require('express');
const axios = require('axios');
const authRoutes = require('./authRoutes');
const authRoutes = require('./gatewayAuthRoutes');

jest.mock('axios');

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion users/authservice/auth-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const metricsMiddleware = promBundle({includeMethod: true});
app.use(metricsMiddleware);

// Initialize the user repository
const userRepository = require('./repositories/userRepository');
const userRepository = require('./repositories/authUserRepository');
userRepository.init(mongoose, mongoUri);

// Middleware to parse JSON in request body
Expand Down

0 comments on commit f19e548

Please sign in to comment.