Skip to content

Commit 5fafcd7

Browse files
committed
Add debugging
1 parent 86a74d4 commit 5fafcd7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

run/idp-sql/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const authenticateJWT = (req, res, next) => {
2828
req.uid = uid;
2929
next();
3030
}).catch((err) => {
31-
logger.error({mesage: `Error with authentication: ${err}`, traceId: req.traceId});
31+
logger.error({message: `Error with authentication: ${err}`, traceId: req.traceId});
3232
return res.sendStatus(403);
3333
});
3434
} else {

run/idp-sql/test/app.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,21 @@ let request;
2323

2424
describe('Unit Tests', () => {
2525
before(async () => {
26-
const app = require(path.join(__dirname, '..', 'app'));
27-
request = supertest(app);
2826
try {
27+
console.log("Dropping table...");
28+
await dropTable();
29+
console.log("Creating table...");
2930
await createTable();
3031
} catch(err) {
3132
console.log(`Error creating DB table: ${err}`)
3233
}
34+
const app = require(path.join(__dirname, '..', 'app'));
35+
request = supertest(app);
3336
});
3437

3538
after(async () => {
3639
try {
40+
console.log("Dropping table...");
3741
await dropTable();
3842
} catch(err) {
3943
console.log(`Error dropping DB table: ${err}`)

0 commit comments

Comments
 (0)