Skip to content

Commit

Permalink
Slight refactor of imports for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
benefacto committed Jan 16, 2024
1 parent 9534222 commit 64d931a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion routes/choices.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const request = require("supertest");
const express = require("express");
const choicesRoutes = require("../routes/choices");
const choicesRoutes = require("./choices");

const app = express();
app.use(express.json());
Expand Down
2 changes: 1 addition & 1 deletion routes/daos.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const request = require("supertest");
const express = require("express");
const daosRoutes = require("../routes/daos");
const daosRoutes = require("./daos");

const app = express();
app.use(express.json());
Expand Down
7 changes: 2 additions & 5 deletions routes/polls.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const request = require("supertest");
const express = require("express");
const pollsRoutes = require("../routes/polls");
const pollsRoutes = require("./polls");

const app = express();
app.use(express.json());
Expand All @@ -21,9 +21,6 @@ describe("Polls Routes", () => {
.expect("Content-Type", /json/);
});
it("should not add a poll with an invalid signature payload", async () => {
await request(app)
.post(`/poll/add`)
.send("")
.expect(500)
await request(app).post(`/poll/add`).send("").expect(500);
});
});

0 comments on commit 64d931a

Please sign in to comment.