Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed May 21, 2023
1 parent a80439c commit 0d3fae6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
7 changes: 3 additions & 4 deletions __test__/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import app from "../src/app";
import { emailQueue, imageProcessingQueue } from "../src/queues";

describe("GET /", () => {

afterAll(async () => {
await emailQueue.close()
await imageProcessingQueue.close()
})
await emailQueue.close();
await imageProcessingQueue.close();
});

it("should respond with 'Express + TypeScript Server'", async () => {
const response = await request(app).get("/");
Expand Down
7 changes: 3 additions & 4 deletions __test__/queues/queueByName.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import imageProcessingQueue from "../../src/queues/imageProcessing.queue";
import queueByName from "../../src/queues/queueByName";

describe("queueByName", () => {

afterAll(async () => {
await emailQueue.close()
await imageProcessingQueue.close()
})
await emailQueue.close();
await imageProcessingQueue.close();
});

it("should return emailQueue for name 'email'", () => {
expect(queueByName("email")).toBe(emailQueue);
Expand Down
7 changes: 3 additions & 4 deletions __test__/routes/posts.route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ afterEach(async () => {
});

describe("/posts routes", () => {

afterAll(async () => {
await emailQueue.close()
await imageProcessingQueue.close()
})
await emailQueue.close();
await imageProcessingQueue.close();
});

test("GET /posts", async () => {
const post = await Post.create({
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"./src/**/*",
"./__test__/**/*",
".eslintrc.json",
"jest.config.ts",
"jest.config.ts"
]
}

0 comments on commit 0d3fae6

Please sign in to comment.